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
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| substitute | Object | Substitutes. |
| endDate | Date | Ending day of the substitution. |
| startDate | Date | Starting day of the substitution. |
| userId | String | List of substitute user IDs (comma separated). |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
:
{"response": {"data": {"substitute": {"userId": "fgn","startDate": "2017-10-22","endDate": "2017-10-27"}},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |