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": "d725df41-6f1c-4228-9a55-cebc19d5c36c",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "dc81e743-be9f-45cf-a793-513d65b392de",
  "Remarks": "sample string 3",
  "Id": "d725df41-6f1c-4228-9a55-cebc19d5c36c",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"d725df41-6f1c-4228-9a55-cebc19d5c36c","CategoryName":"sample string 2","ParentPersonCategoryId":"dc81e743-be9f-45cf-a793-513d65b392de","Remarks":"sample string 3","Id":"d725df41-6f1c-4228-9a55-cebc19d5c36c","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">d725df41-6f1c-4228-9a55-cebc19d5c36c</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>dc81e743-be9f-45cf-a793-513d65b392de</ParentPersonCategoryId>
  <PersonCategoryId>d725df41-6f1c-4228-9a55-cebc19d5c36c</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": "bea75fcf-48e6-4e91-9adf-4eeec835747e",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "7e0d3880-615f-4e19-b072-824c1dbdb116",
  "Remarks": "sample string 3",
  "Id": "bea75fcf-48e6-4e91-9adf-4eeec835747e",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"bea75fcf-48e6-4e91-9adf-4eeec835747e","CategoryName":"sample string 2","ParentPersonCategoryId":"7e0d3880-615f-4e19-b072-824c1dbdb116","Remarks":"sample string 3","Id":"bea75fcf-48e6-4e91-9adf-4eeec835747e","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">bea75fcf-48e6-4e91-9adf-4eeec835747e</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>7e0d3880-615f-4e19-b072-824c1dbdb116</ParentPersonCategoryId>
  <PersonCategoryId>bea75fcf-48e6-4e91-9adf-4eeec835747e</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>