POST api/v1/personcategories
Request Information
URI Parameters
None.
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": "c90549ee-2de8-41f5-ae5c-d8f437232dee",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "63d07246-7644-4520-9547-ced28b0cd55e",
"Remarks": "sample string 3",
"Id": "c90549ee-2de8-41f5-ae5c-d8f437232dee",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"c90549ee-2de8-41f5-ae5c-d8f437232dee","CategoryName":"sample string 2","ParentPersonCategoryId":"63d07246-7644-4520-9547-ced28b0cd55e","Remarks":"sample string 3","Id":"c90549ee-2de8-41f5-ae5c-d8f437232dee","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">c90549ee-2de8-41f5-ae5c-d8f437232dee</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>63d07246-7644-4520-9547-ced28b0cd55e</ParentPersonCategoryId> <PersonCategoryId>c90549ee-2de8-41f5-ae5c-d8f437232dee</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": "cfef2a00-6b5c-4162-81f6-1182dfc1961b",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "7cb832b8-68c4-42df-a0d7-8e096a2b4f1c",
"Remarks": "sample string 3",
"Id": "cfef2a00-6b5c-4162-81f6-1182dfc1961b",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"cfef2a00-6b5c-4162-81f6-1182dfc1961b","CategoryName":"sample string 2","ParentPersonCategoryId":"7cb832b8-68c4-42df-a0d7-8e096a2b4f1c","Remarks":"sample string 3","Id":"cfef2a00-6b5c-4162-81f6-1182dfc1961b","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">cfef2a00-6b5c-4162-81f6-1182dfc1961b</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>7cb832b8-68c4-42df-a0d7-8e096a2b4f1c</ParentPersonCategoryId> <PersonCategoryId>cfef2a00-6b5c-4162-81f6-1182dfc1961b</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>