Copy of persons/io/update (POST)
work in progress
This method lets you update one person, delete one person or create one new person.
If you need to make multiple updates you should rather use this method: persons/io/updates (POST)
URL
(POST) /api/persons/io/update
PARAMETERS
The body must contain a JSON object with these properties:
fileToken | The token that references the JSON array with all updates (your requests for creation, change or deletion of persons). Use media/upload to upload JSON and obtain the token. The JSON payload is an array of update requests, see Person update request (Object) | string, Mandatory |
readonly | Optional. If not specified, then value is set to false.
Please use the read-only mode for development or testing only. It should not be used in production. | bool, Optional |
PARAMETERS
The body must contain a JSON object.
This is a request to delete a person, create a person or change the properties of a person.
See Person update request (Object) for payload details.
A typical payload may look as follows (the example is for deleting a person):
{
"action": "Delete",
"pid": 677,
"cid": 537,
"data": "just a test"
}
RESULTS
The API method returns detailed status and error information.