POST api/Categories/UpdateCategoryItem

Updates the category item. Only Administrator can do that.

Request Information

URI Parameters

None.

Body Parameters

UpdateCategoryItemPost
NameDescriptionTypeAdditional information
Id

(Required) The id of the category item.

integer

None.

ParentId

(Required) The id of parent. If you set it to null the category item will be placed under the root.

integer

None.

Name

(Required) Name. Max length 256. At least one name for one language must be set.

string

None.

Color

(Required) Color in hex format.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ParentId": null,
  "Name": "Category item",
  "Color": "#ffffff"
}

application/xml, text/xml

Sample:
<UpdateCategoryItemPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <Color>#ffffff</Color>
  <Id>1</Id>
  <Name>Category item</Name>
  <ParentId i:nil="true" />
</UpdateCategoryItemPost>

Response Information

Resource Description

Returns id

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>