ProRoster - Get template

API Url

Use it for loading a template

GET
http://localhost:16010/ProMarkREST/rest/ProRoster/templates/{id}

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The template's unique identifier.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    planTemplatesObject[]

List of demands.

      fromDate

Starting date of the template.

      idNumber

The Id of the template.

      isPrivateBoolean

If true then the template is private to the user.

      nameString

The name of the template.

      planIdNumber

The id of the plan.

      rolloutFromDate

Rollout date start.

      rolloutToDate

TRollout date end.

      toDate

Ending date of the template

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"demands": [
{
"planId": 2153908066,
"id": -2153908066,
"from": "2021-08-24",
"to": "2021-08-24",
"name": "Template 1",
"rolloutFrom": "2021-08-24",
"rolloutFrom": "2021-08-24",
"isPrivate": false
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.