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": "54e1c295-cb91-4afb-a4ac-a4def7b3ca0e",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "781c797f-5a61-42a4-9bca-61614c0b38a2",
  "Remarks": "sample string 3",
  "Id": "54e1c295-cb91-4afb-a4ac-a4def7b3ca0e",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"54e1c295-cb91-4afb-a4ac-a4def7b3ca0e","CategoryName":"sample string 2","ParentPersonCategoryId":"781c797f-5a61-42a4-9bca-61614c0b38a2","Remarks":"sample string 3","Id":"54e1c295-cb91-4afb-a4ac-a4def7b3ca0e","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">54e1c295-cb91-4afb-a4ac-a4def7b3ca0e</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>781c797f-5a61-42a4-9bca-61614c0b38a2</ParentPersonCategoryId>
  <PersonCategoryId>54e1c295-cb91-4afb-a4ac-a4def7b3ca0e</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": "f3ce5085-d184-4949-84de-4c0041c82ba1",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "87cba074-ffa0-486e-aeaf-53f7590723d0",
  "Remarks": "sample string 3",
  "Id": "f3ce5085-d184-4949-84de-4c0041c82ba1",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"f3ce5085-d184-4949-84de-4c0041c82ba1","CategoryName":"sample string 2","ParentPersonCategoryId":"87cba074-ffa0-486e-aeaf-53f7590723d0","Remarks":"sample string 3","Id":"f3ce5085-d184-4949-84de-4c0041c82ba1","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">f3ce5085-d184-4949-84de-4c0041c82ba1</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>87cba074-ffa0-486e-aeaf-53f7590723d0</ParentPersonCategoryId>
  <PersonCategoryId>f3ce5085-d184-4949-84de-4c0041c82ba1</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>