POST api/Subscriptions

Takes a list of subscriptions and processes them against the list of current subscriptions. Subscriptions not in the incoming list will be deleted.

Request Information

URI Parameters

None.

Body Parameters

The subscriptions to be kept on the user account

UWEOSubscription
NameDescriptionTypeAdditional information
ContactId

globally unique identifier

None.

EmailAddress

string

None.

Subscriptions

Collection of SingleSubscription

None.

CrmContactId

globally unique identifier

None.

CrmEntityType

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "ContactId": "a2052cd7-b41c-40df-be70-78fad173f743",
  "EmailAddress": "sample string 1",
  "Subscriptions": [
    {
      "ObjectId": "c630056a-a203-4ea8-8d01-11effc10500c",
      "ObjectType": "sample string 1",
      "Name": "sample string 2"
    },
    {
      "ObjectId": "c630056a-a203-4ea8-8d01-11effc10500c",
      "ObjectType": "sample string 1",
      "Name": "sample string 2"
    }
  ],
  "CrmContactId": "34992774-ff86-4e60-8e56-0b43995871ce",
  "CrmEntityType": "sample string 2"
}

application/xml, text/xml

Sample:
<UWEOSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UWEO.CRM.API.Base.Models">
  <CrmContactId>34992774-ff86-4e60-8e56-0b43995871ce</CrmContactId>
  <CrmEntityType>sample string 2</CrmEntityType>
  <ContactId>a2052cd7-b41c-40df-be70-78fad173f743</ContactId>
  <EmailAddress>sample string 1</EmailAddress>
  <Subscriptions>
    <SingleSubscription>
      <Name>sample string 2</Name>
      <ObjectId>c630056a-a203-4ea8-8d01-11effc10500c</ObjectId>
      <ObjectType>sample string 1</ObjectType>
    </SingleSubscription>
    <SingleSubscription>
      <Name>sample string 2</Name>
      <ObjectId>c630056a-a203-4ea8-8d01-11effc10500c</ObjectId>
      <ObjectType>sample string 1</ObjectType>
    </SingleSubscription>
  </Subscriptions>
</UWEOSubscription>

Response Information

Resource Description

The location of the user's updated subscriptions

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.