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": "953543e8-acf3-45f5-908a-6248dc1cea72",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "d26bb74e-622e-40b6-ab4b-88bb85255c70",
"Remarks": "sample string 3",
"Id": "953543e8-acf3-45f5-908a-6248dc1cea72",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"953543e8-acf3-45f5-908a-6248dc1cea72","CategoryName":"sample string 2","ParentPersonCategoryId":"d26bb74e-622e-40b6-ab4b-88bb85255c70","Remarks":"sample string 3","Id":"953543e8-acf3-45f5-908a-6248dc1cea72","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">953543e8-acf3-45f5-908a-6248dc1cea72</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>d26bb74e-622e-40b6-ab4b-88bb85255c70</ParentPersonCategoryId> <PersonCategoryId>953543e8-acf3-45f5-908a-6248dc1cea72</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": "bee0de1a-4ebb-4976-b678-4906bec03112",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "b527a818-5c9e-4e45-8a77-6baabc1aea37",
"Remarks": "sample string 3",
"Id": "bee0de1a-4ebb-4976-b678-4906bec03112",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"bee0de1a-4ebb-4976-b678-4906bec03112","CategoryName":"sample string 2","ParentPersonCategoryId":"b527a818-5c9e-4e45-8a77-6baabc1aea37","Remarks":"sample string 3","Id":"bee0de1a-4ebb-4976-b678-4906bec03112","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">bee0de1a-4ebb-4976-b678-4906bec03112</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>b527a818-5c9e-4e45-8a77-6baabc1aea37</ParentPersonCategoryId> <PersonCategoryId>bee0de1a-4ebb-4976-b678-4906bec03112</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>