UpdateModelSettings
Updates available models settings (associated retention label and model description) for a Microsoft Syntex document understanding model (see example).
HTTP request
POST /_api/machinelearning/models/getbytitle('{modelFileName}')/updatemodelsettings HTTP/1.1
URI parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
modelFileName | query | True | string | Name of the Syntex model file. |
Request headers
Header | Value |
---|---|
Accept | application/json;odata=verbose |
Content-Type | application/json;odata=verbose;charset=utf-8 |
x-requestdigest | The appropriate digest for the current site. |
Request body
Name | Type | Description |
---|---|---|
ModelSettings | string | JSON of model settings. |
Description | string | The model description. |
RetentionLabel | Info for the associated label (label ID and name). |
Responses
Name | Type | Description |
---|---|---|
200 OK | Success |
Examples
Update model settings for Contoso Contract
In this example, the model description and "Standard Hold" retention label are updated. The ID of the retention label is 27c5fcba-abfd-4c34-823d-0b4a48f7ffe6
.
Sample request
{
"ModelSettings": "{\"Description\":\"This model is used to set files classified as Contoso Contracts with a standard hold retention.\", \"RetentionLabel\":{\"Id\":\"27c5fcba-abfd-4c34-823d-0b4a48f7ffe6\",\"Name\":\"Standard Hold\"}}"
}
Sample response
Status code: 200
See also
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기