Update

Update a client contact record

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaclientcontacts.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.9Overview
ActionYesThe action to performaction=update
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
IdentifierYesContact ID or UUID"clientcontactInternalRef":6535
Update dataYesData to update"clientcontactName":"Smith"

To update opt-out for GDPR, use "clientcontactOptOutPhone":true or false

Example request:

http://<SERVER>/jsonapi/clientcontacts.json?user=user&password=user&version=3.9&action=update&input={
  "data": [
    {
      "clientcontactInternalRef": 6535,
      "clientcontactFirstName": "Babs",
      "clientcontactName": "Smith"
    }
  ]
}

Example response:

{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"clientcontactInternalRef": 6535,
"clientcontactuuid": "05F73F03055D4F0D942A7E03D0BA09EE",
"clientcontactTimeStampModified": 1544094783,
"clientcontactRecordVersionNumber": 11
}
]
}

Note:

To discover which fields are editable make a call to the "Contacts details" endpoint and specify '&style=modelstructure' see Meta-data