POST Api/v1/Terminals

Creates a new terminal.

Request Information

URI Parameters

None.

Body Parameters

terminal command

TerminalCommand
NameDescriptionTypeAdditional information
PublicId

string

Required

String length: inclusive between 0 and 10

Name

string

Required

String length: inclusive between 0 and 255

Address

AddressViewModel

Required

TimeZone

string

Required

ObservesDst

boolean

None.

OrganizationId

integer

None.

StartHour

time interval

Required

PersonalConveyanceSettings

PersonalConveyanceViewModel

None.

Author

string

None.

Request Formats

application/json, text/json

Sample:
{
  "publicId": "sample string 1",
  "name": "sample string 2",
  "address": {
    "id": 1,
    "addressLine1": "sample string 2",
    "addressLine2": "sample string 3",
    "addressLine3": "sample string 4",
    "city": "sample string 5",
    "stateProvince": "sample string 6",
    "country": "sample string 7",
    "postalCode": "sample string 8"
  },
  "timeZone": "sample string 3",
  "observesDst": true,
  "organizationId": 1,
  "startHour": "00:00:00.1234567",
  "personalConveyanceSettings": {
    "usKm": 1.0,
    "usWarningThresholdKm": 2.0,
    "canadaKm": 3.0,
    "canadaWarningThresholdKm": 4.0
  },
  "author": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.