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": "53ce5953-b5d5-4cf9-9056-2894999c4a4a",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "c472b079-c94d-4ab3-853e-0c7c8db0e4cf",
  "Remarks": "sample string 3",
  "Id": "53ce5953-b5d5-4cf9-9056-2894999c4a4a",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"53ce5953-b5d5-4cf9-9056-2894999c4a4a","CategoryName":"sample string 2","ParentPersonCategoryId":"c472b079-c94d-4ab3-853e-0c7c8db0e4cf","Remarks":"sample string 3","Id":"53ce5953-b5d5-4cf9-9056-2894999c4a4a","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">53ce5953-b5d5-4cf9-9056-2894999c4a4a</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>c472b079-c94d-4ab3-853e-0c7c8db0e4cf</ParentPersonCategoryId>
  <PersonCategoryId>53ce5953-b5d5-4cf9-9056-2894999c4a4a</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": "4017e481-bd21-486d-a7d8-85ca4ceabbfa",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "0464772b-5aed-4590-82c6-d239f41e3065",
  "Remarks": "sample string 3",
  "Id": "4017e481-bd21-486d-a7d8-85ca4ceabbfa",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"4017e481-bd21-486d-a7d8-85ca4ceabbfa","CategoryName":"sample string 2","ParentPersonCategoryId":"0464772b-5aed-4590-82c6-d239f41e3065","Remarks":"sample string 3","Id":"4017e481-bd21-486d-a7d8-85ca4ceabbfa","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">4017e481-bd21-486d-a7d8-85ca4ceabbfa</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>0464772b-5aed-4590-82c6-d239f41e3065</ParentPersonCategoryId>
  <PersonCategoryId>4017e481-bd21-486d-a7d8-85ca4ceabbfa</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>