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.
PersonCategoryDetails| Name | 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": "4ed36bfc-09bb-41a0-9acf-63707d0b7bf7",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "70d02fd2-43dd-4e58-94a2-cb14c729793f",
"Remarks": "sample string 3",
"Id": "4ed36bfc-09bb-41a0-9acf-63707d0b7bf7",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"4ed36bfc-09bb-41a0-9acf-63707d0b7bf7","CategoryName":"sample string 2","ParentPersonCategoryId":"70d02fd2-43dd-4e58-94a2-cb14c729793f","Remarks":"sample string 3","Id":"4ed36bfc-09bb-41a0-9acf-63707d0b7bf7","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">4ed36bfc-09bb-41a0-9acf-63707d0b7bf7</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>70d02fd2-43dd-4e58-94a2-cb14c729793f</ParentPersonCategoryId> <PersonCategoryId>4ed36bfc-09bb-41a0-9acf-63707d0b7bf7</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PersonCategoryDetails| Name | 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": "31309d52-37c5-4c80-a609-fd7967284346",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "dbfce5ae-c782-42dc-980f-c7a34cea3772",
"Remarks": "sample string 3",
"Id": "31309d52-37c5-4c80-a609-fd7967284346",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"31309d52-37c5-4c80-a609-fd7967284346","CategoryName":"sample string 2","ParentPersonCategoryId":"dbfce5ae-c782-42dc-980f-c7a34cea3772","Remarks":"sample string 3","Id":"31309d52-37c5-4c80-a609-fd7967284346","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">31309d52-37c5-4c80-a609-fd7967284346</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>dbfce5ae-c782-42dc-980f-c7a34cea3772</ParentPersonCategoryId> <PersonCategoryId>31309d52-37c5-4c80-a609-fd7967284346</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>