POST api/web-push-subscription

Request Information

URI Parameters

None.

Body Parameters

WebPushSubscriptionModel
NameDescriptionTypeAdditional information
VisitorId

string

None.

Domain

string

None.

EndPoint

string

None.

Visitor

VisitorInfoModel

None.

Keys

KeysModel

None.

Request Formats

application/json, text/json

Sample:
{
  "VisitorId": "sample string 1",
  "Domain": "sample string 2",
  "EndPoint": "sample string 3",
  "Visitor": {
    "Country": "sample string 1",
    "IsMobile": true,
    "MobileOS": "sample string 3",
    "ScreenWidth": 4
  },
  "Keys": {
    "P256dh": "sample string 1",
    "Auth": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<WebPushSubscriptionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AdsLoom.AdServer.API.Controllers">
  <Domain>sample string 2</Domain>
  <EndPoint>sample string 3</EndPoint>
  <Keys>
    <Auth>sample string 2</Auth>
    <P256dh>sample string 1</P256dh>
  </Keys>
  <Visitor>
    <Country>sample string 1</Country>
    <IsMobile>true</IsMobile>
    <MobileOS>sample string 3</MobileOS>
    <ScreenWidth>4</ScreenWidth>
  </Visitor>
  <VisitorId>sample string 1</VisitorId>
</WebPushSubscriptionModel>

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 'WebPushSubscriptionModel'.

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.