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": "20f56f58-7de1-4176-bb7a-197e6e04428e",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "2293bd93-f149-444f-91b2-57b72d8baad2",
  "Remarks": "sample string 3",
  "Id": "20f56f58-7de1-4176-bb7a-197e6e04428e",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"20f56f58-7de1-4176-bb7a-197e6e04428e","CategoryName":"sample string 2","ParentPersonCategoryId":"2293bd93-f149-444f-91b2-57b72d8baad2","Remarks":"sample string 3","Id":"20f56f58-7de1-4176-bb7a-197e6e04428e","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">20f56f58-7de1-4176-bb7a-197e6e04428e</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>2293bd93-f149-444f-91b2-57b72d8baad2</ParentPersonCategoryId>
  <PersonCategoryId>20f56f58-7de1-4176-bb7a-197e6e04428e</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": "7fbddd16-2016-4d5e-8511-55216a0c3f25",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "887c019d-227a-4ba8-a4b9-2fb97425a580",
  "Remarks": "sample string 3",
  "Id": "7fbddd16-2016-4d5e-8511-55216a0c3f25",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"7fbddd16-2016-4d5e-8511-55216a0c3f25","CategoryName":"sample string 2","ParentPersonCategoryId":"887c019d-227a-4ba8-a4b9-2fb97425a580","Remarks":"sample string 3","Id":"7fbddd16-2016-4d5e-8511-55216a0c3f25","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">7fbddd16-2016-4d5e-8511-55216a0c3f25</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>887c019d-227a-4ba8-a4b9-2fb97425a580</ParentPersonCategoryId>
  <PersonCategoryId>7fbddd16-2016-4d5e-8511-55216a0c3f25</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>