PUT api/v1/personcategories/{personCategoryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
personCategoryId

globally unique identifier

Required

Body Parameters

PersonCategoryDetails
NameDescriptionTypeAdditional information
PersonCategoryId

globally unique identifier

None.

CategoryName

string

Required

String length: inclusive between 0 and 100

ParentPersonCategoryId

globally unique identifier

None.

Remarks

string

String length: inclusive between 0 and 250

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonCategoryId": "bd2500ba-7378-4f53-8efa-61e098f862e6",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "b95b47c2-18c8-4cf4-8a88-b3a8d5dd8961",
  "Remarks": "sample string 3",
  "Id": "bd2500ba-7378-4f53-8efa-61e098f862e6",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"bd2500ba-7378-4f53-8efa-61e098f862e6","CategoryName":"sample string 2","ParentPersonCategoryId":"b95b47c2-18c8-4cf4-8a88-b3a8d5dd8961","Remarks":"sample string 3","Id":"bd2500ba-7378-4f53-8efa-61e098f862e6","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<PersonCategoryDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">bd2500ba-7378-4f53-8efa-61e098f862e6</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>b95b47c2-18c8-4cf4-8a88-b3a8d5dd8961</ParentPersonCategoryId>
  <PersonCategoryId>bd2500ba-7378-4f53-8efa-61e098f862e6</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PersonCategoryDetails
NameDescriptionTypeAdditional information
PersonCategoryId

globally unique identifier

None.

CategoryName

string

Required

String length: inclusive between 0 and 100

ParentPersonCategoryId

globally unique identifier

None.

Remarks

string

String length: inclusive between 0 and 250

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "PersonCategoryId": "d9ca1abc-3680-4012-bcd2-e36e27e527d7",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "a1a43887-afa6-4e53-ac9d-4b902e497ab4",
  "Remarks": "sample string 3",
  "Id": "d9ca1abc-3680-4012-bcd2-e36e27e527d7",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"d9ca1abc-3680-4012-bcd2-e36e27e527d7","CategoryName":"sample string 2","ParentPersonCategoryId":"a1a43887-afa6-4e53-ac9d-4b902e497ab4","Remarks":"sample string 3","Id":"d9ca1abc-3680-4012-bcd2-e36e27e527d7","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<PersonCategoryDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">d9ca1abc-3680-4012-bcd2-e36e27e527d7</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>a1a43887-afa6-4e53-ac9d-4b902e497ab4</ParentPersonCategoryId>
  <PersonCategoryId>d9ca1abc-3680-4012-bcd2-e36e27e527d7</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>