POST api/Activity

Request Information

URI Parameters

None.

Body Parameters

Activity
NameDescriptionTypeAdditional information
ActivityId

integer

None.

Description

string

None.

PracticeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ActivityId": 1,
  "Description": "sample string 2",
  "PracticeId": 1
}

text/html

Sample:
{"ActivityId":1,"Description":"sample string 2","PracticeId":1}

application/xml, text/xml

Sample:
<Activity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetAPI.DataModel">
  <ActivityId>1</ActivityId>
  <Description>sample string 2</Description>
  <PracticeId>1</PracticeId>
</Activity>

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

Response Information

Resource Description

Activity
NameDescriptionTypeAdditional information
ActivityId

integer

None.

Description

string

None.

PracticeId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ActivityId": 1,
  "Description": "sample string 2",
  "PracticeId": 1
}

text/html

Sample:
{"ActivityId":1,"Description":"sample string 2","PracticeId":1}

application/xml, text/xml

Sample:
<Activity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetAPI.DataModel">
  <ActivityId>1</ActivityId>
  <Description>sample string 2</Description>
  <PracticeId>1</PracticeId>
</Activity>