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": "9133ed48-1394-4df6-9ae8-73ec9bceb091",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "ff434bf6-e613-401d-b48d-9acbd722fd72",
"Remarks": "sample string 3",
"Id": "9133ed48-1394-4df6-9ae8-73ec9bceb091",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"9133ed48-1394-4df6-9ae8-73ec9bceb091","CategoryName":"sample string 2","ParentPersonCategoryId":"ff434bf6-e613-401d-b48d-9acbd722fd72","Remarks":"sample string 3","Id":"9133ed48-1394-4df6-9ae8-73ec9bceb091","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">9133ed48-1394-4df6-9ae8-73ec9bceb091</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>ff434bf6-e613-401d-b48d-9acbd722fd72</ParentPersonCategoryId> <PersonCategoryId>9133ed48-1394-4df6-9ae8-73ec9bceb091</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": "f028c3aa-cc4b-49f7-9330-c2c8526c0d06",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "de2b1c5d-f8a4-4fad-94b9-f9af296bfe17",
"Remarks": "sample string 3",
"Id": "f028c3aa-cc4b-49f7-9330-c2c8526c0d06",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"f028c3aa-cc4b-49f7-9330-c2c8526c0d06","CategoryName":"sample string 2","ParentPersonCategoryId":"de2b1c5d-f8a4-4fad-94b9-f9af296bfe17","Remarks":"sample string 3","Id":"f028c3aa-cc4b-49f7-9330-c2c8526c0d06","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">f028c3aa-cc4b-49f7-9330-c2c8526c0d06</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>de2b1c5d-f8a4-4fad-94b9-f9af296bfe17</ParentPersonCategoryId> <PersonCategoryId>f028c3aa-cc4b-49f7-9330-c2c8526c0d06</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>