POST Api/Trai/subscriber/setSubscription

Request Information

URI Parameters

None.

Body Parameters

subscription
NameDescriptionTypeAdditional information
subscription_id

string

None.

configure

string

None.

bouquet

Collection of Bouquet

None.

channels

Collection of Channel

None.

total_free_channels

integer

None.

total_channels

integer

None.

total_paid_channels

integer

None.

total_bouquet

integer

None.

total_alacarte

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "subscription_id": "sample string 1",
  "configure": "sample string 2",
  "bouquet": [
    {
      "bouquet_id": 1
    },
    {
      "bouquet_id": 1
    }
  ],
  "channels": [
    {
      "channel_id": 1
    },
    {
      "channel_id": 1
    }
  ],
  "total_free_channels": 3,
  "total_channels": 4,
  "total_paid_channels": 5,
  "total_bouquet": 6,
  "total_alacarte": 7
}

application/xml, text/xml

Sample:
<subscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Phoenix.IN.Common.Models.TRAI">
  <bouquet>
    <Bouquet>
      <bouquet_id>1</bouquet_id>
    </Bouquet>
    <Bouquet>
      <bouquet_id>1</bouquet_id>
    </Bouquet>
  </bouquet>
  <channels>
    <Channel>
      <channel_id>1</channel_id>
    </Channel>
    <Channel>
      <channel_id>1</channel_id>
    </Channel>
  </channels>
  <configure>sample string 2</configure>
  <subscription_id>sample string 1</subscription_id>
  <total_alacarte>7</total_alacarte>
  <total_bouquet>6</total_bouquet>
  <total_channels>4</total_channels>
  <total_free_channels>3</total_free_channels>
  <total_paid_channels>5</total_paid_channels>
</subscription>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.