Set the retraining state
put/projects/{projectId}/retrainJobs
Sets the retraining state for the project. The retraining state can be set as needed or completed. The response object contains the job created for performing the batch retraining.
1{2 "AnalyticsProject": {3 "id": "9d63e067-1644-4ea4-8155-2c1790da487b",4 "name": "930",5 "links": [],6 "creationTimeStamp": "2023-02-06T14:06:26.928Z",7 "createdBy": "username",8 "modifiedTimeStamp": "2023-02-07T17:41:05.201Z",9 "modifiedBy": "username",10 "revision": 40,11 "version": 1,12 "projectType": "datamining",13 "projectStatus": "ready",14 "retrainingState": "needed"15 }16}
| Name | Type | Required | Description |
|---|---|---|---|
state | string | true | The state of the project retrain. Allowed values: neededcompleted |
| Status | Meaning | Description | ||
|---|---|---|---|---|
| 200 | OK | The request succeeded. | Headers | Schema |
| 400 | Bad Request | The request was invalid. | Schema | |
| 404 | Not Found | No project exists at the requested path. | Schema | |
| 412 | Precondition Failed | The value supplied in the If-Match header did not match the expected value. | Schema | |
| 428 | Precondition Required | An If-Match header was not supplied on the update request. | Schema |