Update
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | expenselines.json | |
| General | Yes | Parameters described in overview | Authorization: Bearer <access_token> header — see Synergist API Authentication | Structure of an API call |
| Action | Yes | The action to perform | action=update | |
| Input | Yes | JSON string | See below |
| JSON Input | Mandatory | Description | Examples |
|---|---|---|---|
| Identifier | Yes | Expense sheet ID or UUID | "expenselineInternal":2288 |
| Update data | Yes | Data to update on expense sheet | "expenselineTotal":100 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expenselines.json?&version=6&action=update&input={
"data": [
{
"expenselineInternal": 2288,
"expenselineTotal": 100
}
]
}
Example request (legacy username/password):
http://<SERVER>/jsonapi/expenselines.json?&version=6&action=update&input={
"data": [
{
"expenselineInternal": 2288,
"expenselineTotal": 100
}
]
}&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true
}