PUT api/agentposttagfilter/schedule?agentId={agentId}&productId={productId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
agentId

integer

Required

productId

integer

Required

Body Parameters

UserScheduleModel
NameDescriptionTypeAdditional information
enabled

boolean

None.

subscribed

date

None.

canceled

date

None.

postToBusinessPage

boolean

None.

facebookPageId

string

None.

postToProfile

boolean

None.

postingDays

Collection of boolean

None.

featuredListings

boolean

None.

includeOfficeListings

boolean

None.

productId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "enabled": true,
  "subscribed": "2024-04-27T04:08:24.6885321+00:00",
  "canceled": "2024-04-27T04:08:24.6885321+00:00",
  "postToBusinessPage": true,
  "facebookPageId": "sample string 3",
  "postToProfile": true,
  "postingDays": [
    true,
    true
  ],
  "featuredListings": true,
  "includeOfficeListings": true,
  "productId": 1
}

text/html

Sample:
{"enabled":true,"subscribed":"2024-04-27T04:08:24.6885321+00:00","canceled":"2024-04-27T04:08:24.6885321+00:00","postToBusinessPage":true,"facebookPageId":"sample string 3","postToProfile":true,"postingDays":[true,true],"featuredListings":true,"includeOfficeListings":true,"productId":1}

application/xml, text/xml

Sample:
<UserScheduleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <Canceled>2024-04-27T04:08:24.6885321+00:00</Canceled>
  <Enabled>true</Enabled>
  <FacebookPageId>sample string 3</FacebookPageId>
  <FeaturedListings>true</FeaturedListings>
  <IncludeOfficeListings>true</IncludeOfficeListings>
  <PostToBusinessPage>true</PostToBusinessPage>
  <PostToProfile>true</PostToProfile>
  <PostingDays xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:boolean>true</d2p1:boolean>
    <d2p1:boolean>true</d2p1:boolean>
  </PostingDays>
  <ProductId>1</ProductId>
  <Subscribed>2024-04-27T04:08:24.6885321+00:00</Subscribed>
</UserScheduleModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.