ProRoster - Get status of AI Auto assignment for the plan

API Url

Used to get the status of all AI Auto assignment for the plan

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

Permissions: user

Path parameters

FieldTypeDescription
planIdNumber

The plan Id.

Query parameters

FieldTypeDescription
empIdsoptionalString

Comma seperated list of employee ids. if not sent the employees of the current plans are loaded.

fromoptionalDate

Start of the period

tooptionalDate

End of the period

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

      snapshotIdNumber

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,
"snapshotId": 1,
"started" : 2021-11-04 10:30:00
}
]
},
"erorCode": 0,
"errorMessage": ""
}
}