POST api/{context}/partner/Subscriptions

Create a new partner to subscription relationship if it doesn't exist in Aegis CRM.

Request Information

ParameterDescriptionAdditional information
partnerSubscriptionModel
A model representing a list of partner to subscriptions to be stored.

Define this parameter in the request body.

Requirements

NumberNotes
#1
PartnerID, and Name are required fields.

Special Field Notes

Field NameNotes
ID
Primary key for all Aegis CRM records.  The PartnerID/ContactID must already exist.
PartnerSubscribed.Name
Primary key for all Aegis CRM Subscriptions.  The Subscription's name must already exist.

Request body formats

application/json, text/json

Sample:
{
  "PartnerID": "sample string 2",
  "PartnerSubscribedModels": [
    {
      "SubscriptionType": "sample string 2",
      "Name": "sample string 3",
      "Description": "sample string 4"
    },
    {
      "SubscriptionType": "sample string 2",
      "Name": "sample string 3",
      "Description": "sample string 4"
    },
    {
      "SubscriptionType": "sample string 2",
      "Name": "sample string 3",
      "Description": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<PartnerSubscriptionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BDS.Web.WebApi.Models">
  <PartnerID>sample string 2</PartnerID>
  <UniqueID>8c1fcd65-ead5-40f1-b885-8056c0aeaede</UniqueID>
</PartnerSubscriptionModel>