PUT api/v1/personcategories/{personCategoryId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| personCategoryId | globally unique identifier |
Required |
Body Parameters
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": "0045e747-0ff6-4e03-abe4-7750d754ea60",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "54579272-73c5-45b0-9a7b-a1d844ae1fa5",
"Remarks": "sample string 3",
"Id": "0045e747-0ff6-4e03-abe4-7750d754ea60",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"0045e747-0ff6-4e03-abe4-7750d754ea60","CategoryName":"sample string 2","ParentPersonCategoryId":"54579272-73c5-45b0-9a7b-a1d844ae1fa5","Remarks":"sample string 3","Id":"0045e747-0ff6-4e03-abe4-7750d754ea60","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">0045e747-0ff6-4e03-abe4-7750d754ea60</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>54579272-73c5-45b0-9a7b-a1d844ae1fa5</ParentPersonCategoryId> <PersonCategoryId>0045e747-0ff6-4e03-abe4-7750d754ea60</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>
application/x-www-form-urlencoded
Sample:
Sample not available.
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": "a2bd2109-7749-4d45-85c1-79abd9f8de2a",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "20bd1b7c-0af4-4d58-98c4-5e4761b01a0f",
"Remarks": "sample string 3",
"Id": "a2bd2109-7749-4d45-85c1-79abd9f8de2a",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"a2bd2109-7749-4d45-85c1-79abd9f8de2a","CategoryName":"sample string 2","ParentPersonCategoryId":"20bd1b7c-0af4-4d58-98c4-5e4761b01a0f","Remarks":"sample string 3","Id":"a2bd2109-7749-4d45-85c1-79abd9f8de2a","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">a2bd2109-7749-4d45-85c1-79abd9f8de2a</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>20bd1b7c-0af4-4d58-98c4-5e4761b01a0f</ParentPersonCategoryId> <PersonCategoryId>a2bd2109-7749-4d45-85c1-79abd9f8de2a</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>