POST api/DepartmentAPI

Request Information

URI Parameters

None.

Body Parameters

Department
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

SortOrder

integer

None.

UserString

string

None.

PriceTag

string

String length: inclusive between 0 and 10

WarehouseId

integer

None.

TicketTypeId

integer

None.

DepartmentTypeId

integer

None.

ScreenMenuId

integer

None.

TicketCreationMethod

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "SortOrder": 3,
  "UserString": "sample string 2",
  "PriceTag": "sample string 4",
  "WarehouseId": 5,
  "TicketTypeId": 6,
  "DepartmentTypeId": 7,
  "ScreenMenuId": 8,
  "TicketCreationMethod": 9
}

application/xml, text/xml

Sample:
<Department xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DCubeHotelDomain.Models.Tickets">
  <DepartmentTypeId>7</DepartmentTypeId>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <PriceTag>sample string 4</PriceTag>
  <ScreenMenuId>8</ScreenMenuId>
  <SortOrder>3</SortOrder>
  <TicketCreationMethod>9</TicketCreationMethod>
  <TicketTypeId>6</TicketTypeId>
  <WarehouseId>5</WarehouseId>
</Department>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

None.