POST api/tag/listing/{onboardingAgentId}/admin/{buyerId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
onboardingAgentId

integer

Required

buyerId

integer

Required

Body Parameters

Collection of ListingTagModel
NameDescriptionTypeAdditional information
Id

string

None.

BuyerId

integer

None.

ListingId

string

Required

Latitude

decimal number

None.

Longitude

decimal number

None.

Tags

Collection of string

None.

AgentId

integer

None.

UnsubscribeNotification

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": "1_sample string 2",
    "BuyerId": 1,
    "ListingId": "sample string 2",
    "Latitude": 3.1,
    "Longitude": 4.1,
    "Tags": [
      "sample string 1",
      "sample string 2"
    ],
    "AgentId": 5,
    "UnsubscribeNotification": true
  },
  {
    "Id": "1_sample string 2",
    "BuyerId": 1,
    "ListingId": "sample string 2",
    "Latitude": 3.1,
    "Longitude": 4.1,
    "Tags": [
      "sample string 1",
      "sample string 2"
    ],
    "AgentId": 5,
    "UnsubscribeNotification": true
  }
]

text/html

Sample:
[{"Id":"1_sample string 2","BuyerId":1,"ListingId":"sample string 2","Latitude":3.1,"Longitude":4.1,"Tags":["sample string 1","sample string 2"],"AgentId":5,"UnsubscribeNotification":true},{"Id":"1_sample string 2","BuyerId":1,"ListingId":"sample string 2","Latitude":3.1,"Longitude":4.1,"Tags":["sample string 1","sample string 2"],"AgentId":5,"UnsubscribeNotification":true}]

application/xml, text/xml

Sample:
<ArrayOfListingTagModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <ListingTagModel>
    <AgentId>5</AgentId>
    <BuyerId>1</BuyerId>
    <Latitude>3.1</Latitude>
    <ListingId>sample string 2</ListingId>
    <Longitude>4.1</Longitude>
    <Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Tags>
    <UnsubscribeNotification>true</UnsubscribeNotification>
  </ListingTagModel>
  <ListingTagModel>
    <AgentId>5</AgentId>
    <BuyerId>1</BuyerId>
    <Latitude>3.1</Latitude>
    <ListingId>sample string 2</ListingId>
    <Longitude>4.1</Longitude>
    <Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Tags>
    <UnsubscribeNotification>true</UnsubscribeNotification>
  </ListingTagModel>
</ArrayOfListingTagModel>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.