POST api/people/{id}/updateamarketingpreference
Update a markerting preference by PersonId This cannot be used internally as they do not have the right to move status up to to approved Only the client does Processes this people API request. The parameter and response sections describe the data exchanged with the API.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The unique identifier of the requested resource. |
integer |
Required |
Body Parameters
The marketing preference data contract supplied with the request.
MarketingPreferenceDataContract| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceType |
The service type value. |
EnumDataContract |
None. |
| ServiceStatusType |
The service status type value. |
EnumDataContract |
None. |
| Referral |
Indicates whether referral is true. |
boolean |
None. |
| ReferralStatusType |
The referral status type value. |
EnumDataContract |
None. |
| Id |
The unique identifier of this resource. |
integer |
None. |
Request Formats
application/x-www-form-urlencoded
Sample not available.
application/json, text/json
{
"ServiceType": {
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
},
"ServiceStatusType": {
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
},
"Referral": true,
"ReferralStatusType": {
"Id": 1,
"Name": "sample string 2",
"SystemName": "sample string 3"
},
"Id": 2
}
Response Information
Resource Description
The redaction status of a person
HttpResponseMessage| Name | Description | Type | Additional 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. |