Reorder items in a checklist
Reorder Items
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | checklistitems.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=reorder | |
| Identifier | Yes | Checklist item UUID | uuid=1E78E968D52160428B123B48978F4F40 | |
| Position | Yes | Checklist item position | position=2 |
Example request (OAuth 2.0):
Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/checklistitems.json?&version=6&uuid=1E78E968D52160428B123B48978F4F40&position=2&action=reorder
Example request (legacy username/password):
http://<SERVER>/jsonapi/checklistitems.json?&version=6&uuid=1E78E968D52160428B123B48978F4F40&position=2&action=reorder&user=<username>&password=<password>
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "Reordered successfully. ",
"warningmessage": "",
"success": true
}