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": "037ca341-b334-45f8-9fc0-4c5b1be2e378",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "837c85bc-d6ba-40f2-94ab-06cb6fa25fad",
"Remarks": "sample string 3",
"Id": "037ca341-b334-45f8-9fc0-4c5b1be2e378",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"037ca341-b334-45f8-9fc0-4c5b1be2e378","CategoryName":"sample string 2","ParentPersonCategoryId":"837c85bc-d6ba-40f2-94ab-06cb6fa25fad","Remarks":"sample string 3","Id":"037ca341-b334-45f8-9fc0-4c5b1be2e378","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">037ca341-b334-45f8-9fc0-4c5b1be2e378</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>837c85bc-d6ba-40f2-94ab-06cb6fa25fad</ParentPersonCategoryId> <PersonCategoryId>037ca341-b334-45f8-9fc0-4c5b1be2e378</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": "db82aba7-4386-4928-b5b6-de3493c96b7b",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "e8dbc053-5a12-4553-ac14-36dfe565a762",
"Remarks": "sample string 3",
"Id": "db82aba7-4386-4928-b5b6-de3493c96b7b",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"db82aba7-4386-4928-b5b6-de3493c96b7b","CategoryName":"sample string 2","ParentPersonCategoryId":"e8dbc053-5a12-4553-ac14-36dfe565a762","Remarks":"sample string 3","Id":"db82aba7-4386-4928-b5b6-de3493c96b7b","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">db82aba7-4386-4928-b5b6-de3493c96b7b</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>e8dbc053-5a12-4553-ac14-36dfe565a762</ParentPersonCategoryId> <PersonCategoryId>db82aba7-4386-4928-b5b6-de3493c96b7b</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>