Impersonation - Get substitute

API Url

Load the ProMark user that is set to substitute the current user.

GET
http://localhost:16010/ProMarkREST/rest/General/substitute

Permissions: user

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    substituteObject

Substitutes.

      endDateDate

Ending day of the substitution.

      startDateDate

Starting day of the substitution.

      userIdString

List of substitute user IDs (comma separated).

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

:

{
"response": {
"data": {
"substitute": {
"userId": "fgn",
"startDate": "2017-10-22",
"endDate": "2017-10-27"
}
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.