POST api/AgentReferral

Request Information

URI Parameters

None.

Body Parameters

AgentReferralCreateModel
NameDescriptionTypeAdditional information
Detail

string

Required

AgentId

integer

Range: inclusive between 1 and 2147483647

Location

string

Required

Expertise

Collection of integer

None.

Credentials

Collection of integer

None.

PostBody

string

Required

AgentImageUrl

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Detail": "sample string 1",
  "AgentId": 2,
  "Location": "sample string 3",
  "Expertise": [
    1,
    2
  ],
  "Credentials": [
    1,
    2
  ],
  "PostBody": "sample string 4",
  "AgentImageUrl": "sample string 5"
}

text/html

Sample:
{"Detail":"sample string 1","AgentId":2,"Location":"sample string 3","Expertise":[1,2],"Credentials":[1,2],"PostBody":"sample string 4","AgentImageUrl":"sample string 5"}

application/xml, text/xml

Sample:
<AgentReferralCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <AgentId>2</AgentId>
  <AgentImageUrl>sample string 5</AgentImageUrl>
  <Credentials xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Credentials>
  <Detail>sample string 1</Detail>
  <Expertise xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Expertise>
  <Location>sample string 3</Location>
  <PostBody>sample string 4</PostBody>
</AgentReferralCreateModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.