Skip to main content

update opt-out status for a communication context

update opt-out status for a communication context

Path Parameters
    departmentUUID string required
Request Body required
    customerUUID string
    messageUUID string
    userUUID string
    apiCallSource string
    communicationAttributesList object[]
  • Array [
  • communicationType string
    communicationValue string
    okToCommunicate boolean
    customerUUID string
  • ]
  • event string

    Possible values: [STOP_MESSAGE_RECEIVED, STOP_SUSPECTED_MESSAGE_RECEIVED, OPTIN_MESSAGE_RECEIVED, OPTIN_TEXT_CONSENT_VIA_MESSAGE_RECEIVED, GENERIC_MESSAGE_RECEIVED, USER_REQUESTED_SEND_OPTIN_REQUEST, USER_REQUESTED_OPT_OUT, COMMUNICATION_VALUE_CREATION, COMMUNICATION_STATUS_NOT_FOUND, DOUBLE_OPTIN_ROLLOUT, DOUBLE_OPTIN_ROLLBACK]

    updateType string

    Possible values: [MESSAGE, CUSTOMER, DEPLOYMENT]

    processSynchronously boolean
Responses

OK


Schema
    errors object[]
  • Array [
  • errorCode string
    errorDescription string
    errorUID string
  • ]
  • warnings object[]
  • Array [
  • warningCode string
    warningDescription string
  • ]
POST /department/:departmentUUID/optoutstatus

Authorization

name: basicAuthtype: httpscheme: basic

Request

Base URL
/communications
Username
Password
departmentUUID — path required
Body required
{
"customerUUID": "string",
"messageUUID": "string",
"userUUID": "string",
"apiCallSource": "string",
"communicationAttributesList": [
{
"communicationType": "string",
"communicationValue": "string",
"okToCommunicate": true,
"customerUUID": "string"
}
],
"event": "STOP_MESSAGE_RECEIVED",
"updateType": "MESSAGE",
"processSynchronously": true
}
curl / cURL
curl -L -X POST '/communications/department/:departmentUUID/optoutstatus' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"customerUUID": "string",
"messageUUID": "string",
"userUUID": "string",
"apiCallSource": "string",
"communicationAttributesList": [
{
"communicationType": "string",
"communicationValue": "string",
"okToCommunicate": true,
"customerUUID": "string"
}
],
"event": "STOP_MESSAGE_RECEIVED",
"updateType": "MESSAGE",
"processSynchronously": true
}'