Modifies the configurations, such as scheduled training settings and the training goal, of a model. This operation modifies only configurations that are specified in the requests.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only the common request headers. For more information, see Common request parameters.

Request syntax

PUT /v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName] HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
appGroupIdentity String Path Yes "group_name"

The name of the application.

modelName String Path Yes "model_name"

The name of the model.

Request body

Parameter

Type

Required

Example

Description

name

String

Yes

"my_model"

The name of the model.

industry

String

No

"general"

The industry to which the model applies.

trainTarget

String

No

"click"

The training goal of the model.

behaviorEnabled

Boolean

No

true

Specifies whether to use behavioral data.

behaviorFromGroupName

String

No

The name of the application whose behavioral data source is used.

cron

String

No

The CRON expression for scheduled training.

cronEnabled

Boolean

No

true

Specifies whether to enable scheduled training.

availableThreshold

Float

No

0.8

The threshold that an available model must reach.

filter

String

No

The filter condition for importing data.

fields[]

Object

No

The fields to be used by the model.

If this parameter is left empty, the default fields are used.

fields[].name

String

Yes

The name of the field.

fields[].appFieldType

String

No

The role of the field in the application.

fields[].processType

String

No

The processing type for the field.

For more information, see Model.

Response parameters

Parameter Type Example Description
requestId String F5099063-6B86-F398-D843-905F9EFB683A

The ID of the request.

result String {}

N/A

Examples

Sample requests

PUT /v4/openapi/app-groups/my_app/algorithm/models/DemoModelName

{
    "trainTarget": "cvr",
    "cron": "15 0 */3 * *",
    "cronEnabled": false
}

Sample success responses

XML format

<requestId>F5099063-6B86-F398-D843-905F9EFB683A</requestId>
<result/>

JSON format

{
    "requestId": "F5099063-6B86-F398-D843-905F9EFB683A",
    "result": ""
}

Error codes

For a list of error codes, visit the API Error Center.