POST
/
leads
/
{leadId}
/
switchCustomerProfile
curl --request POST \
  --url https://api.attent.app/v1/leads/{leadId}/switchCustomerProfile \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "profile": "<string>",
  "sendMessage": true,
  "messageDelayHours": 123,
  "messageDelayMins": 123,
  "clearMemory": true
}'
{
  "message": "Switched profile successfully.",
  "sendMessage": true,
  "messageDelayHours": 0,
  "messageDelayMins": 30
}

Authorizations

x-api-key
string
header
required

Path Parameters

leadId
string
required

The ID of the lead to switch the customer profile for.

Body

application/json

The new customer profile to switch the lead to.

The body is of type object.

Response

200 - application/json

Customer profile of lead switched successfully.

The response is of type object.