POST api/v1/general/locations/location

Request Information

URI Parameters

None.

Body Parameters

LocationModel
NameDescriptionTypeAdditional information
Id

integer

None.

OperatorId

integer

None.

Name

string

None.

Capacity

integer

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "OperatorId": 2,
  "Name": "sample string 3",
  "Capacity": 4,
  "IsActive": true
}

application/xml, text/xml

Sample:
<LocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Capacity>4</Capacity>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <Name>sample string 3</Name>
  <OperatorId>2</OperatorId>
</LocationModel>

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

Response Information

Resource Description

LocationModel
NameDescriptionTypeAdditional information
Id

integer

None.

OperatorId

integer

None.

Name

string

None.

Capacity

integer

None.

IsActive

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "OperatorId": 2,
  "Name": "sample string 3",
  "Capacity": 4,
  "IsActive": true
}

application/xml, text/xml

Sample:
<LocationModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emalogic.Conservatory.Common.Models">
  <Capacity>4</Capacity>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <Name>sample string 3</Name>
  <OperatorId>2</OperatorId>
</LocationModel>