POST subscriberdatapolicy/add

Data Policy Agreement.

Request Information

URI Parameters

None.

Body Parameters

Subscribers_DataPolicy
NameDescriptionTypeAdditional information
SubscriberInfoId

Subscriber Id

integer

None.

AcceptDataPolicy

Accept privacy notice and data privacy consent

boolean

None.

AcceptTermsAndCondition

Accept terms and condition

boolean

None.

Creator

Creator

string

None.

DataPolicyList

Collection of subscriber_DataPolicyList

None.

Request Formats

application/json, text/json

Sample:
{
  "subscriberInfoId": 1,
  "acceptDataPolicy": true,
  "acceptTermsAndCondition": true,
  "creator": "sample string 3",
  "dataPolicyList": [
    {
      "dpaId": 1,
      "agreed": true
    },
    {
      "dpaId": 1,
      "agreed": true
    }
  ]
}

application/xml, text/xml

Sample:
<Subscribers_DataPolicy xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <AcceptDataPolicy>true</AcceptDataPolicy>
  <AcceptTermsAndCondition>true</AcceptTermsAndCondition>
  <Creator>sample string 3</Creator>
  <DataPolicyList>
    <subscriber_DataPolicyList>
      <DPAId>1</DPAId>
      <agreed>true</agreed>
    </subscriber_DataPolicyList>
    <subscriber_DataPolicyList>
      <DPAId>1</DPAId>
      <agreed>true</agreed>
    </subscriber_DataPolicyList>
  </DataPolicyList>
  <SubscriberInfoId>1</SubscriberInfoId>
</Subscribers_DataPolicy>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Subscribers_DataPolicy'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>