Supplement - Put allowance rate
API Url
Used for updating allowance rate data
PUT
http://localhost:16010/ProMarkREST/rest/Supplements/allowance-rates/{objectId}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| objectId | Number | Unique id. |
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| allowanceRates | Object[] | Collection of allowance rates to be updated |
| addendaId | String | Supplement Id |
| addendaType | Number | Supplement type |
| employeeId | String | Employee Id |
| fromDate | Date | Allowance rate from date |
| id | Number | Unique identifier for the allowance rate |
| patchArea | String | Patch Area |
| projectId | String | Project Id |
| rate | Decimal | Allowance rate |
| toDate | Date | Allowance rate to date |
| unitType | Number | unitType |
| version | Number | Version |
Request example:
{"request": {"data": {"allowanceRates": [{"id": 2163959395,"employeeId": "1292","projectId": "AARSLEFFII","addendaId": "0A","fromDate": "2019-09-01","rate": 94,"version": 0,"patchArea": "","addendaType": 0,"unitType": 1}]}}}
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
{"response": {"errorCode": 1,"errorMessage": "error text"}}