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": "237de853-7bad-4ae2-94aa-8f24c48a138e",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "96ce2f80-62a3-4428-93f5-05b3ddd4e41c",
"Remarks": "sample string 3",
"Id": "237de853-7bad-4ae2-94aa-8f24c48a138e",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"237de853-7bad-4ae2-94aa-8f24c48a138e","CategoryName":"sample string 2","ParentPersonCategoryId":"96ce2f80-62a3-4428-93f5-05b3ddd4e41c","Remarks":"sample string 3","Id":"237de853-7bad-4ae2-94aa-8f24c48a138e","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">237de853-7bad-4ae2-94aa-8f24c48a138e</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>96ce2f80-62a3-4428-93f5-05b3ddd4e41c</ParentPersonCategoryId> <PersonCategoryId>237de853-7bad-4ae2-94aa-8f24c48a138e</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": "02c90cec-a47b-4b95-b04c-7f49a18691de",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "9d6fce47-9954-48b3-b0fc-c05f47168aa5",
"Remarks": "sample string 3",
"Id": "02c90cec-a47b-4b95-b04c-7f49a18691de",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"02c90cec-a47b-4b95-b04c-7f49a18691de","CategoryName":"sample string 2","ParentPersonCategoryId":"9d6fce47-9954-48b3-b0fc-c05f47168aa5","Remarks":"sample string 3","Id":"02c90cec-a47b-4b95-b04c-7f49a18691de","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">02c90cec-a47b-4b95-b04c-7f49a18691de</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>9d6fce47-9954-48b3-b0fc-c05f47168aa5</ParentPersonCategoryId> <PersonCategoryId>02c90cec-a47b-4b95-b04c-7f49a18691de</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>