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": "7d33edf7-7151-455a-ace0-960ea8f75866",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "a613e8ea-72bd-4f70-9e80-4f46ad97ed42",
  "Remarks": "sample string 3",
  "Id": "7d33edf7-7151-455a-ace0-960ea8f75866",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"7d33edf7-7151-455a-ace0-960ea8f75866","CategoryName":"sample string 2","ParentPersonCategoryId":"a613e8ea-72bd-4f70-9e80-4f46ad97ed42","Remarks":"sample string 3","Id":"7d33edf7-7151-455a-ace0-960ea8f75866","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">7d33edf7-7151-455a-ace0-960ea8f75866</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>a613e8ea-72bd-4f70-9e80-4f46ad97ed42</ParentPersonCategoryId>
  <PersonCategoryId>7d33edf7-7151-455a-ace0-960ea8f75866</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": "51376cb9-38a2-4a23-835d-3c142e1fb7d3",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "c1576c9f-c08c-458c-bf7f-795a5a96eafe",
  "Remarks": "sample string 3",
  "Id": "51376cb9-38a2-4a23-835d-3c142e1fb7d3",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"51376cb9-38a2-4a23-835d-3c142e1fb7d3","CategoryName":"sample string 2","ParentPersonCategoryId":"c1576c9f-c08c-458c-bf7f-795a5a96eafe","Remarks":"sample string 3","Id":"51376cb9-38a2-4a23-835d-3c142e1fb7d3","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">51376cb9-38a2-4a23-835d-3c142e1fb7d3</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>c1576c9f-c08c-458c-bf7f-795a5a96eafe</ParentPersonCategoryId>
  <PersonCategoryId>51376cb9-38a2-4a23-835d-3c142e1fb7d3</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>