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": "6109d8f3-d0da-4f29-b2c1-eb4dd9ee810a",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "c1e6168d-082e-4e48-95a0-0fb5b2cd2526",
"Remarks": "sample string 3",
"Id": "6109d8f3-d0da-4f29-b2c1-eb4dd9ee810a",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"6109d8f3-d0da-4f29-b2c1-eb4dd9ee810a","CategoryName":"sample string 2","ParentPersonCategoryId":"c1e6168d-082e-4e48-95a0-0fb5b2cd2526","Remarks":"sample string 3","Id":"6109d8f3-d0da-4f29-b2c1-eb4dd9ee810a","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">6109d8f3-d0da-4f29-b2c1-eb4dd9ee810a</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>c1e6168d-082e-4e48-95a0-0fb5b2cd2526</ParentPersonCategoryId> <PersonCategoryId>6109d8f3-d0da-4f29-b2c1-eb4dd9ee810a</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": "f585157f-922a-4e05-84e7-07c777719f10",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "0aa92c30-4c38-403b-a1b4-a460aea4baa8",
"Remarks": "sample string 3",
"Id": "f585157f-922a-4e05-84e7-07c777719f10",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"f585157f-922a-4e05-84e7-07c777719f10","CategoryName":"sample string 2","ParentPersonCategoryId":"0aa92c30-4c38-403b-a1b4-a460aea4baa8","Remarks":"sample string 3","Id":"f585157f-922a-4e05-84e7-07c777719f10","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">f585157f-922a-4e05-84e7-07c777719f10</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>0aa92c30-4c38-403b-a1b4-a460aea4baa8</ParentPersonCategoryId> <PersonCategoryId>f585157f-922a-4e05-84e7-07c777719f10</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>