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": "38a379f7-7eda-4168-b2b2-d1d39e9d3285",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "95904130-3c9e-4afb-995c-cde560b10135",
"Remarks": "sample string 3",
"Id": "38a379f7-7eda-4168-b2b2-d1d39e9d3285",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"38a379f7-7eda-4168-b2b2-d1d39e9d3285","CategoryName":"sample string 2","ParentPersonCategoryId":"95904130-3c9e-4afb-995c-cde560b10135","Remarks":"sample string 3","Id":"38a379f7-7eda-4168-b2b2-d1d39e9d3285","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">38a379f7-7eda-4168-b2b2-d1d39e9d3285</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>95904130-3c9e-4afb-995c-cde560b10135</ParentPersonCategoryId> <PersonCategoryId>38a379f7-7eda-4168-b2b2-d1d39e9d3285</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": "7706cd27-2ff0-4be8-ba2c-9e808c7b505b",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "5b55f33b-298f-46c8-88b6-5ddee33e99fc",
"Remarks": "sample string 3",
"Id": "7706cd27-2ff0-4be8-ba2c-9e808c7b505b",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"7706cd27-2ff0-4be8-ba2c-9e808c7b505b","CategoryName":"sample string 2","ParentPersonCategoryId":"5b55f33b-298f-46c8-88b6-5ddee33e99fc","Remarks":"sample string 3","Id":"7706cd27-2ff0-4be8-ba2c-9e808c7b505b","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">7706cd27-2ff0-4be8-ba2c-9e808c7b505b</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>5b55f33b-298f-46c8-88b6-5ddee33e99fc</ParentPersonCategoryId> <PersonCategoryId>7706cd27-2ff0-4be8-ba2c-9e808c7b505b</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>