POST api/Operators

Request Information

URI Parameters

None.

Body Parameters

Operators
NameDescriptionTypeAdditional information
pkOperator

integer

None.

OperatorID

integer

None.

Name

string

Required

String length: inclusive between 0 and 50

LastName

string

String length: inclusive between 0 and 50

Provider

string

String length: inclusive between 0 and 50

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "pkOperator": 1,
  "OperatorID": 2,
  "Name": "sample string 3",
  "LastName": "sample string 4",
  "Provider": "sample string 5",
  "Active": true
}

application/xml, text/xml

Sample:
<Operators xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GaribaldiApi.Models">
  <Active>true</Active>
  <LastName>sample string 4</LastName>
  <Name>sample string 3</Name>
  <OperatorID>2</OperatorID>
  <Provider>sample string 5</Provider>
  <pkOperator>1</pkOperator>
</Operators>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Operators
NameDescriptionTypeAdditional information
pkOperator

integer

None.

OperatorID

integer

None.

Name

string

Required

String length: inclusive between 0 and 50

LastName

string

String length: inclusive between 0 and 50

Provider

string

String length: inclusive between 0 and 50

Active

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "pkOperator": 1,
  "OperatorID": 2,
  "Name": "sample string 3",
  "LastName": "sample string 4",
  "Provider": "sample string 5",
  "Active": true
}

application/xml, text/xml

Sample:
<Operators xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GaribaldiApi.Models">
  <Active>true</Active>
  <LastName>sample string 4</LastName>
  <Name>sample string 3</Name>
  <OperatorID>2</OperatorID>
  <Provider>sample string 5</Provider>
  <pkOperator>1</pkOperator>
</Operators>