Budgets - Overwrite a day in the budget
API Url
Use it to overwrite a day in the budget
POST
http://localhost:16010/ProMarkREST/web/System/Budgets/{id}/days
Permissions: user
Request headers
| Field | Type | Description |
|---|---|---|
Accept-Languageoptional | String | =en-GB Language use for localization. |
X-Clientoptional | String | =Client type. "Portal""Mobile""Admin" |
X-Roleoptional | Number | ProMark role (1: Employee, 2: User). {12} |
X-WebPart-Idoptional | Number | Unique web-part identifier. |
Path parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Budget id. |
Query parameters
| Field | Type | Description |
|---|---|---|
operationoptional | Number |
|
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| budgetDays | Object[] | |
| actialValue | Number | The new value of the budget for that day. |
| day | String | The day to overwrite |
| periodId | String | The period id for which the rotation is changing |
Request example:
{"request": {"data": {"budgetDays": [{"periodId": 44453,"day": "2020-05-25","actualValue": 400}]}}}
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. |