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": "b826c037-cef6-4539-8618-a3afc20eb087",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "674ce44d-602c-4919-828b-cad921862f0f",
"Remarks": "sample string 3",
"Id": "b826c037-cef6-4539-8618-a3afc20eb087",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"b826c037-cef6-4539-8618-a3afc20eb087","CategoryName":"sample string 2","ParentPersonCategoryId":"674ce44d-602c-4919-828b-cad921862f0f","Remarks":"sample string 3","Id":"b826c037-cef6-4539-8618-a3afc20eb087","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">b826c037-cef6-4539-8618-a3afc20eb087</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>674ce44d-602c-4919-828b-cad921862f0f</ParentPersonCategoryId> <PersonCategoryId>b826c037-cef6-4539-8618-a3afc20eb087</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": "17ec8ac6-2a43-44f5-ba45-2e50c9a85b9d",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "41e96658-9146-43a2-ae5e-5456a0bfaf40",
"Remarks": "sample string 3",
"Id": "17ec8ac6-2a43-44f5-ba45-2e50c9a85b9d",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"17ec8ac6-2a43-44f5-ba45-2e50c9a85b9d","CategoryName":"sample string 2","ParentPersonCategoryId":"41e96658-9146-43a2-ae5e-5456a0bfaf40","Remarks":"sample string 3","Id":"17ec8ac6-2a43-44f5-ba45-2e50c9a85b9d","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">17ec8ac6-2a43-44f5-ba45-2e50c9a85b9d</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>41e96658-9146-43a2-ae5e-5456a0bfaf40</ParentPersonCategoryId> <PersonCategoryId>17ec8ac6-2a43-44f5-ba45-2e50c9a85b9d</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>