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": "829416b9-6007-46a7-8904-76baf5b75538",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "ee25ce3a-9f42-4295-b616-53c90a32517b",
"Remarks": "sample string 3",
"Id": "829416b9-6007-46a7-8904-76baf5b75538",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"829416b9-6007-46a7-8904-76baf5b75538","CategoryName":"sample string 2","ParentPersonCategoryId":"ee25ce3a-9f42-4295-b616-53c90a32517b","Remarks":"sample string 3","Id":"829416b9-6007-46a7-8904-76baf5b75538","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">829416b9-6007-46a7-8904-76baf5b75538</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>ee25ce3a-9f42-4295-b616-53c90a32517b</ParentPersonCategoryId> <PersonCategoryId>829416b9-6007-46a7-8904-76baf5b75538</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": "b4c1c7df-224a-4ef4-a59a-9063b7386cf4",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "4ba2d7ad-fef2-43ed-80d1-063cafa6998c",
"Remarks": "sample string 3",
"Id": "b4c1c7df-224a-4ef4-a59a-9063b7386cf4",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"b4c1c7df-224a-4ef4-a59a-9063b7386cf4","CategoryName":"sample string 2","ParentPersonCategoryId":"4ba2d7ad-fef2-43ed-80d1-063cafa6998c","Remarks":"sample string 3","Id":"b4c1c7df-224a-4ef4-a59a-9063b7386cf4","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">b4c1c7df-224a-4ef4-a59a-9063b7386cf4</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>4ba2d7ad-fef2-43ed-80d1-063cafa6998c</ParentPersonCategoryId> <PersonCategoryId>b4c1c7df-224a-4ef4-a59a-9063b7386cf4</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>