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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
agentId

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.

Request Formats

application/json, text/json

Sample:
{
  "enabled": true,
  "subscribed": "2021-08-01T05:22:42.2169056+00:00",
  "canceled": "2021-08-01T05:22:42.2169056+00:00",
  "postToBusinessPage": true,
  "facebookPageId": "sample string 3",
  "postToProfile": true,
  "postingDays": [
    true,
    true
  ],
  "featuredListings": true,
  "includeOfficeListings": true
}

text/html

Sample:
{"enabled":true,"subscribed":"2021-08-01T05:22:42.2169056+00:00","canceled":"2021-08-01T05:22:42.2169056+00:00","postToBusinessPage":true,"facebookPageId":"sample string 3","postToProfile":true,"postingDays":[true,true],"featuredListings":true,"includeOfficeListings":true}

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>2021-08-01T05:22:42.2169056+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>
  <Subscribed>2021-08-01T05:22:42.2169056+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.