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": "f0e7d8b4-9c08-4620-857d-bf014fe047b9",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "d51270c2-b8dd-42c7-bf05-2460c44d5e67",
"Remarks": "sample string 3",
"Id": "f0e7d8b4-9c08-4620-857d-bf014fe047b9",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"f0e7d8b4-9c08-4620-857d-bf014fe047b9","CategoryName":"sample string 2","ParentPersonCategoryId":"d51270c2-b8dd-42c7-bf05-2460c44d5e67","Remarks":"sample string 3","Id":"f0e7d8b4-9c08-4620-857d-bf014fe047b9","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">f0e7d8b4-9c08-4620-857d-bf014fe047b9</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>d51270c2-b8dd-42c7-bf05-2460c44d5e67</ParentPersonCategoryId> <PersonCategoryId>f0e7d8b4-9c08-4620-857d-bf014fe047b9</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": "9ae8048d-396b-46c8-82e6-c5a06bf05cf7",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "a0fce581-b1f3-454b-838d-7ccb1427b18b",
"Remarks": "sample string 3",
"Id": "9ae8048d-396b-46c8-82e6-c5a06bf05cf7",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"9ae8048d-396b-46c8-82e6-c5a06bf05cf7","CategoryName":"sample string 2","ParentPersonCategoryId":"a0fce581-b1f3-454b-838d-7ccb1427b18b","Remarks":"sample string 3","Id":"9ae8048d-396b-46c8-82e6-c5a06bf05cf7","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">9ae8048d-396b-46c8-82e6-c5a06bf05cf7</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>a0fce581-b1f3-454b-838d-7ccb1427b18b</ParentPersonCategoryId> <PersonCategoryId>9ae8048d-396b-46c8-82e6-c5a06bf05cf7</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>