Update
| Parameter | Description | Example | More info |
|---|---|---|---|
| API | The API area | clientcontacts.json | |
| Action | The action to perform | action=update | |
| Parameters described in overview | user=user&password=user&version=3.3 | v3.3 Overview | |
| input | JSON string | input="data": ... | |
| Client contact internal reference | |||
| number | "clientcontactInternalRef":8632 | ||
| Client contact opt out field | |||
| number | "clientcontactOptOutPhone":true |
Response|Returned data|See below
Example request:
http://<server>/jsonapi/clientcontacts.json?user=user&password=user&version=3.3&action=update&input={"data":[{"clientcontactInternalRef":142, "clientcontactOptOutPhone":true}]}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"clientcontactInternalRef": 142,
"clientcontactuuid": "B47402D2DAB94DCAA78E01DF8F07808E",
"clientcontactTimeStampModified": 1536227626,
"clientcontactRecordVersionNumber": 11
}
]
}