ProRoster - Update the status of an AI Auto assignment simulation

API Url

Used to update the status of an AI Auto assignment simulation

PUT
http://localhost:16010/ProMarkREST/web/ProRoster/plans/{planId}/automations

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The plan Id.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    statusObject[]
      fromDate

Start Date of the simulation

      idNumber

Id of the simulation

      planIdNumber

Unique id of the plan

      readBoolean

True if the status was read

      snapshotVersionNumber

The Id of the snapshot where the auto assignment will be saved.

      startedDateTime

The date and time of when the simulation was started.

      toDate

End Date of the simulation

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

    statusObject[]
      fromDate

Start Date of the simulation

      idNumber

Id of the simulation

      planIdNumber

Unique id of the plan

      readBoolean

True if the status was read

      snapshotVersionNumber

The Id of the snapshot where the auto assignment will be saved.

      startedDateTime

The date and time of when the simulation was started.

      toDate

End Date of the simulation

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example with a single shift:

HTTP/1.1 200 OK
{
"response": {
"data": {
"status": [
{
"id": 21321354,
"from": "2021-11-04",
"to": "2021-11-11",
"planId": 132130,
"read": false,
"snapshotVersion": 1,
"started" : 2021-11-04 10:30:00
}
]
},
"erorCode": 0,
"errorMessage": ""
}
}