Opt Out (GDPR)

Opt Out (GDPR)

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaclientcontacts.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
ActionYesThe action to performaction=dont_opt_in
IdentifierYesContact ID or UUIDclientcontact=8589

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://&lt;SERVER&gt;/jsonapi/clientcontacts.json?&version=6&action=dont_opt_in&clientcontact=8589

Example request (legacy username/password):

http://&lt;SERVER&gt;/jsonapi/clientcontacts.json?&version=6&action=dont_opt_in&clientcontact=8589&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "Organisation contact(s) opt in changed. ",
  "warningmessage": "",
  "success": true
}