Expense - Post supplement favorite
API Url
Used to post supplement favorite.
POST
http://localhost:16010/ProMarkREST/rest/Mileage/supplement-favorites/{supplementId}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| supplementId | String | Unique supplement ID |
Query parameters
| Field | Type | Description |
|---|---|---|
typeoptional | String | Supplements type (1: Mileage supplement 1; 2: Mileage supplement 2, 3: Travel Detail supplement 4: Loose Time supplement) Default is 1 |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
{"response": {"errorCode": 5,"errorMessage": "No employees"}}