POST api/poolDepartmentItemapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

PoolDepartmentItemViewModel
NameDescriptionTypeAdditional information
date

date

Required

active

boolean

Required

department_item_id

globally unique identifier

Required

id

globally unique identifier

None.

quantity

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "date": "2026-06-09T05:33:58.9856248+00:00",
  "active": true,
  "department_item_id": "eaab6449-dc11-4b62-8d05-88955a305103",
  "id": "3de4f73e-8adb-45c8-b05e-a6779b681ce6",
  "quantity": 5
}

application/xml, text/xml

Sample:
<pool_department_item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <date>2026-06-09T05:33:58.9856248+00:00</date>
  <department_item_id>eaab6449-dc11-4b62-8d05-88955a305103</department_item_id>
  <id>3de4f73e-8adb-45c8-b05e-a6779b681ce6</id>
  <quantity>5</quantity>
</pool_department_item>

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

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"a76ac660-42a6-40db-8cab-6464126155e9"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">a76ac660-42a6-40db-8cab-6464126155e9</guid>