PUT api/contacts/{id}/contactsubscriptionstatuses

Update a ContactSubscriptionStatus record.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The primary key of the parent Contact record in the Hobsons database.

integer

Required

Body Parameters

The ContactSubscriptionStatus object which is passed in via the request body.

ContactSubscriptionStatusDto
NameDescriptionTypeAdditional information
CrmNumber

A reference to the primary key of the Contact record that is associated with the record. Ignored for PUT (except bulk updates) requests sent to the API.

integer

None.

SubscribedToDirectEmails

Indicates the contacts current subscription status for direct (non-broadcast) email communications (i.e. whether the contact is opted in or has opted out).

boolean

Required

SubscribedToDirectPhoneCalls

Indicates the contacts current subscription status for direct (non-broadcast) phone communications (i.e. whether the contact is opted in or has opted out).

boolean

Required

SubscribedToDirectSms

Indicates the contacts current subscription status for direct (non-broadcast) SMS communications (i.e. whether the contact is opted in or has opted out).

boolean

Required

Request Formats

application/json, text/json

Sample:
{
  "CrmNumber": 1,
  "SubscribedToDirectEmails": true,
  "SubscribedToDirectPhoneCalls": true,
  "SubscribedToDirectSms": true
}

Response Information

Resource Description

None.