PUT V2/odata/Category({key})

Updates Category entity

Request Information

URI Parameters

NameDescriptionTypeAdditional information
key

CategoryId from Category entity

integer

Required

Body Parameters

QicsUnity.Api.Areas.V2.Models.Category
NameDescriptionTypeAdditional information
CategoryId

Gets or sets category PK

integer

Required

64-bit signed integer

CategoryType

Gets or sets category type

QicsUnity.Common.BusinessObjects.CategoryType

Required

Name

Gets or sets the name of the category

string

Required

Request Formats

application/json, text/json

Sample:
{
  "CategoryId": "1",
  "CategoryType": "Customer",
  "Name": "sample 2"
}

application/xml, text/xml

Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <CategoryId>1</CategoryId>
  <CategoryType>Customer</CategoryType>
  <Name>sample 2</Name>
</Category>

Response Information

Resource Description

QicsUnity.Api.Areas.V2.Models.Category
NameDescriptionTypeAdditional information
CategoryId

Gets or sets category PK

integer

Required

64-bit signed integer

CategoryType

Gets or sets category type

QicsUnity.Common.BusinessObjects.CategoryType

Required

Name

Gets or sets the name of the category

string

Required

Response Formats

application/json, text/json

Sample:
{
  "CategoryId": "1",
  "CategoryType": "Customer",
  "Name": "sample 2"
}

application/xml, text/xml

Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <CategoryId>1</CategoryId>
  <CategoryType>Customer</CategoryType>
  <Name>sample 2</Name>
</Category>