PUT api/v1/personcategories/{personCategoryId}
Updates the specified personCategory.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
personCategoryId |
The personCategory identifier. |
globally unique identifier |
Required |
Body Parameters
The personCategory details.
PersonCategoryDetailsName | Description | Type | Additional 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": "fbdde245-7139-4242-85db-16287476b6be", "CategoryName": "sample string 2", "ParentPersonCategoryId": "dbe8972f-0ccf-4eb6-be32-33de11df1651", "Remarks": "sample string 3", "Id": "fbdde245-7139-4242-85db-16287476b6be", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"fbdde245-7139-4242-85db-16287476b6be","CategoryName":"sample string 2","ParentPersonCategoryId":"dbe8972f-0ccf-4eb6-be32-33de11df1651","Remarks":"sample string 3","Id":"fbdde245-7139-4242-85db-16287476b6be","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">fbdde245-7139-4242-85db-16287476b6be</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>dbe8972f-0ccf-4eb6-be32-33de11df1651</ParentPersonCategoryId> <PersonCategoryId>fbdde245-7139-4242-85db-16287476b6be</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PersonCategoryDetailsName | Description | Type | Additional 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": "9b139402-4b2b-463b-8407-f67f84641828", "CategoryName": "sample string 2", "ParentPersonCategoryId": "0ac7a1ac-e733-436c-8109-def415d83362", "Remarks": "sample string 3", "Id": "9b139402-4b2b-463b-8407-f67f84641828", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"9b139402-4b2b-463b-8407-f67f84641828","CategoryName":"sample string 2","ParentPersonCategoryId":"0ac7a1ac-e733-436c-8109-def415d83362","Remarks":"sample string 3","Id":"9b139402-4b2b-463b-8407-f67f84641828","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">9b139402-4b2b-463b-8407-f67f84641828</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>0ac7a1ac-e733-436c-8109-def415d83362</ParentPersonCategoryId> <PersonCategoryId>9b139402-4b2b-463b-8407-f67f84641828</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>