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": "07ea3f95-0b43-401c-9c37-da2529127f3b",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "4d8710af-92a0-4689-a77d-c34be655d4d7",
"Remarks": "sample string 3",
"Id": "07ea3f95-0b43-401c-9c37-da2529127f3b",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"07ea3f95-0b43-401c-9c37-da2529127f3b","CategoryName":"sample string 2","ParentPersonCategoryId":"4d8710af-92a0-4689-a77d-c34be655d4d7","Remarks":"sample string 3","Id":"07ea3f95-0b43-401c-9c37-da2529127f3b","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">07ea3f95-0b43-401c-9c37-da2529127f3b</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>4d8710af-92a0-4689-a77d-c34be655d4d7</ParentPersonCategoryId> <PersonCategoryId>07ea3f95-0b43-401c-9c37-da2529127f3b</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": "d17dbe91-e076-44bd-bfb6-bb267cd38772",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "bed5aeb6-af4b-4320-a11c-cce83d735140",
"Remarks": "sample string 3",
"Id": "d17dbe91-e076-44bd-bfb6-bb267cd38772",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"d17dbe91-e076-44bd-bfb6-bb267cd38772","CategoryName":"sample string 2","ParentPersonCategoryId":"bed5aeb6-af4b-4320-a11c-cce83d735140","Remarks":"sample string 3","Id":"d17dbe91-e076-44bd-bfb6-bb267cd38772","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">d17dbe91-e076-44bd-bfb6-bb267cd38772</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>bed5aeb6-af4b-4320-a11c-cce83d735140</ParentPersonCategoryId> <PersonCategoryId>d17dbe91-e076-44bd-bfb6-bb267cd38772</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>