Update a Contact

Update a Contact


Function

  • updateContact()

Url

  • POST: /PuresendService/v1/updateContact

Parameters

  • contactId: long
    • email/contact to set the opt-out status for
  • optOut: boolean
    • set opted out or not.
  • emailBounced: boolean
    • set email Bounced or not.
  • clearField: boolean
    • set clear field flag,
      • if (clearField is true && newValue[i] is Empty) => clear this Field's value,
      • if (clearField is false) => set those newValues which are not empty.
  • newFieldValues: String[]
    • the new value array to set.

Return

  • int:
    • 1: success

Exception

  • Exception

Documentation

  • Update a Contact by ID.

Examples

{
    "contactId" : 123456790987654321,
    "hasOptedOut": false,
    "emailBounced": false,
    "clearField": false,
    "fieldValues": ["fieldValue1", "fieldValue2", "", "something"]
}
{
    "statusCode": 1
}