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": "23efe54c-5d9c-436a-b1c7-41a3059e04fd",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "a0029645-c304-47d9-889e-19407413b6a2",
"Remarks": "sample string 3",
"Id": "23efe54c-5d9c-436a-b1c7-41a3059e04fd",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"23efe54c-5d9c-436a-b1c7-41a3059e04fd","CategoryName":"sample string 2","ParentPersonCategoryId":"a0029645-c304-47d9-889e-19407413b6a2","Remarks":"sample string 3","Id":"23efe54c-5d9c-436a-b1c7-41a3059e04fd","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">23efe54c-5d9c-436a-b1c7-41a3059e04fd</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>a0029645-c304-47d9-889e-19407413b6a2</ParentPersonCategoryId> <PersonCategoryId>23efe54c-5d9c-436a-b1c7-41a3059e04fd</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": "0db93e12-1e56-40ae-8bda-1139dac86861",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "f24ea4f7-f3d1-427e-acdc-3c6ce1f593f4",
"Remarks": "sample string 3",
"Id": "0db93e12-1e56-40ae-8bda-1139dac86861",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"0db93e12-1e56-40ae-8bda-1139dac86861","CategoryName":"sample string 2","ParentPersonCategoryId":"f24ea4f7-f3d1-427e-acdc-3c6ce1f593f4","Remarks":"sample string 3","Id":"0db93e12-1e56-40ae-8bda-1139dac86861","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">0db93e12-1e56-40ae-8bda-1139dac86861</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>f24ea4f7-f3d1-427e-acdc-3c6ce1f593f4</ParentPersonCategoryId> <PersonCategoryId>0db93e12-1e56-40ae-8bda-1139dac86861</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>