POST api/people/unsubscribe/{id}

Unsubscribe/Subscribe All contact items for a person Processes this people API request. The parameter and response sections describe the data exchanged with the API.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The unique identifier of the requested resource.

integer

Required

Body Parameters

The items value supplied with the request.

Collection of ContactItemDataContract
NameDescriptionTypeAdditional information
Type

The type value.

EnumDataContract

None.

Value

The value represented by this field.

string

None.

Notes

The notes value.

string

None.

ContactOrder

The contact order value.

integer

None.

AllowContact

Indicates whether allow contact is true.

boolean

None.

MarketingContactStatus

The marketing contact status value.

EnumDataContract

None.

Name

The name value.

string

None.

Id

The unique identifier of this resource.

integer

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
[
  {
    "Type": {
      "Id": 1,
      "Name": "sample string 2",
      "SystemName": "sample string 3"
    },
    "Value": "sample string 1",
    "Notes": "sample string 2",
    "ContactOrder": 3,
    "AllowContact": true,
    "MarketingContactStatus": {
      "Id": 1,
      "Name": "sample string 2",
      "SystemName": "sample string 3"
    },
    "Name": "sample string 5",
    "Id": 6
  },
  {
    "Type": {
      "Id": 1,
      "Name": "sample string 2",
      "SystemName": "sample string 3"
    },
    "Value": "sample string 1",
    "Notes": "sample string 2",
    "ContactOrder": 3,
    "AllowContact": true,
    "MarketingContactStatus": {
      "Id": 1,
      "Name": "sample string 2",
      "SystemName": "sample string 3"
    },
    "Name": "sample string 5",
    "Id": 6
  }
]

Response Information

Resource Description

The created ContactItem

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

The version value.

Version

None.

Content

The content value.

HttpContent

None.

StatusCode

The status code classification.

HttpStatusCode

None.

ReasonPhrase

The reason phrase value.

string

None.

Headers

The collection of headers.

Collection of Object

None.

RequestMessage

The request message value.

HttpRequestMessage

None.

IsSuccessStatusCode

Indicates whether this item is success status code.

boolean

None.