Update an existing expense sheet
Update
Parameter | Description | Examples |
---|---|---|
API | The API area | expensesheets.json |
Action | The action to perform | action=update |
<General> | Parameters described in overview | user=user&password=user&version=3.2 |
Company | The company context | company=1 |
input | JSON string | input="data": ... |
Identifier | Data identifying expense sheet to update | "expensesheetInternalRef":687 |
Update data | Data to update on expense sheet | "expensesheetDescription":"My expense sheet 2" |
Response | Returned data | See below |
Example request:
http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.2&company=1&action=update&input={"data":[{"expensesheetInternalRef":687,"expensesheetDescription":"My expense sheet 2"}]}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"expensesheetInternalRef": 687,
"expensesheetUuid": "0356E3479C70BD47B8A26B06E04DD450",
"expensesheetTimestampModified": 1533201346,
"expensesheetRecordVersionNumber": 14
}
]
}