POST api/ProductSubscriptions

Creates a new ProductSubscriptions entity

Request Information

URI Parameters

None.

Body Parameters

ProductSubscriptionsData object

ProductSubscriptionsData
NameDescriptionTypeAdditional information
SubscriptionID

integer

None.

SubscriptionName

string

None.

DurationDays

integer

None.

SubscriptionType

string

None.

Price

decimal number

None.

CreatedDate

date

None.

Status

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "SubscriptionID": 1,
  "SubscriptionName": "sample string 2",
  "DurationDays": 3,
  "SubscriptionType": "sample string 4",
  "Price": 5.0,
  "CreatedDate": "2026-01-18T14:37:33.4132701-08:00",
  "Status": 6
}

text/xml

Sample:
<ProductSubscriptionsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CodeBhagat.DAL">
  <CreatedDate>2026-01-18T14:37:33.4132701-08:00</CreatedDate>
  <DurationDays>3</DurationDays>
  <Price>5</Price>
  <Status>6</Status>
  <SubscriptionID>1</SubscriptionID>
  <SubscriptionName>sample string 2</SubscriptionName>
  <SubscriptionType>sample string 4</SubscriptionType>
</ProductSubscriptionsData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.