POST api/Categories/SetTicketCategoryItems

Sets new selected category items when multiple option is used or changes selected category item when multiple option is not used

Request Information

URI Parameters

None.

Body Parameters

SetTicketCategoryItemsPost
NameDescriptionTypeAdditional information
TicketId

The ticket id

integer

None.

CategoryId

The category id, which you want to change

integer

None.

CategoryItemsIds

The new category items ids

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TicketId": 1,
  "CategoryId": 1,
  "CategoryItemsIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<SetTicketCategoryItemsPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <CategoryId>1</CategoryId>
  <CategoryItemsIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </CategoryItemsIds>
  <TicketId>1</TicketId>
</SetTicketCategoryItemsPost>

Response Information

Resource Description

IHttpActionResult

None.