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": "77090cfa-cb78-4070-97d8-87cd0fd7b281",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "4f8bed0a-bb4f-4730-bb80-4058fd4852fe",
"Remarks": "sample string 3",
"Id": "77090cfa-cb78-4070-97d8-87cd0fd7b281",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"77090cfa-cb78-4070-97d8-87cd0fd7b281","CategoryName":"sample string 2","ParentPersonCategoryId":"4f8bed0a-bb4f-4730-bb80-4058fd4852fe","Remarks":"sample string 3","Id":"77090cfa-cb78-4070-97d8-87cd0fd7b281","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">77090cfa-cb78-4070-97d8-87cd0fd7b281</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>4f8bed0a-bb4f-4730-bb80-4058fd4852fe</ParentPersonCategoryId> <PersonCategoryId>77090cfa-cb78-4070-97d8-87cd0fd7b281</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": "b4f2228f-17f7-45c0-b949-a6f2399f21ea",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "9b48f0d8-d33e-40e4-992a-a0cda152f35e",
"Remarks": "sample string 3",
"Id": "b4f2228f-17f7-45c0-b949-a6f2399f21ea",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"b4f2228f-17f7-45c0-b949-a6f2399f21ea","CategoryName":"sample string 2","ParentPersonCategoryId":"9b48f0d8-d33e-40e4-992a-a0cda152f35e","Remarks":"sample string 3","Id":"b4f2228f-17f7-45c0-b949-a6f2399f21ea","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">b4f2228f-17f7-45c0-b949-a6f2399f21ea</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>9b48f0d8-d33e-40e4-992a-a0cda152f35e</ParentPersonCategoryId> <PersonCategoryId>b4f2228f-17f7-45c0-b949-a6f2399f21ea</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>