POST api/web-push-subscription

Request Information

URI Parameters

None.

Body Parameters

WebPushSubscriptionModel
NameDescriptionTypeAdditional information
VisitorId

string

None.

Domain

string

None.

EndPoint

string

None.

Keys

KeysModel

None.

Request Formats

application/json, text/json

Sample:
{
  "VisitorId": "sample string 1",
  "Domain": "sample string 2",
  "EndPoint": "sample string 3",
  "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>
  <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

None.