POST api/Deporte

Request Information

URI Parameters

None.

Body Parameters

Deporte
NameDescriptionTypeAdditional information
contactId

globally unique identifier

Required

sport

integer

Required

sportName

string

None.

selection

boolean

None.

date

date

Data type: Date

team

boolean

None.

teamsName

string

None.

comments

string

None.

position

string

None.

recordName

string

None.

recordId

globally unique identifier

None.

createdOn

date

None.

modifiedOn

date

None.

createdById

globally unique identifier

None.

modifiedById

globally unique identifier

None.

createdByName

string

None.

modifiedByName

string

None.

ownerId

globally unique identifier

None.

updateSource

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "contactId": "b74334e7-916a-416f-ac63-7ed2c9fe9b16",
  "sport": 1,
  "sportName": "sample string 1",
  "selection": true,
  "date": "2017-09-21T07:09:11.7816431-05:00",
  "team": true,
  "teamsName": "sample string 2",
  "comments": "sample string 3",
  "position": "sample string 4",
  "recordName": "sample string 5",
  "recordId": "6feb8c1f-a361-4101-aabd-d721fe13c145",
  "createdOn": "2017-09-21T07:09:11.7816431-05:00",
  "modifiedOn": "2017-09-21T07:09:11.7816431-05:00",
  "createdById": "5774ecac-3b00-4b5a-828e-47e014f87166",
  "modifiedById": "b3a1d636-df64-4018-b387-d63519cb0d78",
  "createdByName": "sample string 6",
  "modifiedByName": "sample string 7",
  "ownerId": "ff03c1ea-8c67-4ba0-89a2-de8ab23fdedf",
  "updateSource": 1
}

application/xml, text/xml

Sample:
<Deporte xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrmAppsUP.Models">
  <createdById>5774ecac-3b00-4b5a-828e-47e014f87166</createdById>
  <createdByName>sample string 6</createdByName>
  <createdOn>2017-09-21T07:09:11.7816431-05:00</createdOn>
  <modifiedById>b3a1d636-df64-4018-b387-d63519cb0d78</modifiedById>
  <modifiedByName>sample string 7</modifiedByName>
  <modifiedOn>2017-09-21T07:09:11.7816431-05:00</modifiedOn>
  <ownerId>ff03c1ea-8c67-4ba0-89a2-de8ab23fdedf</ownerId>
  <recordId>6feb8c1f-a361-4101-aabd-d721fe13c145</recordId>
  <recordName>sample string 5</recordName>
  <updateSource>1</updateSource>
  <comments>sample string 3</comments>
  <contactId>b74334e7-916a-416f-ac63-7ed2c9fe9b16</contactId>
  <date>2017-09-21T07:09:11.7816431-05:00</date>
  <position>sample string 4</position>
  <selection>true</selection>
  <sport>1</sport>
  <sportName>sample string 1</sportName>
  <team>true</team>
  <teamsName>sample string 2</teamsName>
</Deporte>

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

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"f12c249d-8d34-4e8b-ba28-fb955cda9efd"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">f12c249d-8d34-4e8b-ba28-fb955cda9efd</guid>