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": "42af3e62-6822-486d-aa19-1a9931c16546",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "9984ea00-4d7a-454b-ad02-ebf33b5d60be",
"Remarks": "sample string 3",
"Id": "42af3e62-6822-486d-aa19-1a9931c16546",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"42af3e62-6822-486d-aa19-1a9931c16546","CategoryName":"sample string 2","ParentPersonCategoryId":"9984ea00-4d7a-454b-ad02-ebf33b5d60be","Remarks":"sample string 3","Id":"42af3e62-6822-486d-aa19-1a9931c16546","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">42af3e62-6822-486d-aa19-1a9931c16546</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>9984ea00-4d7a-454b-ad02-ebf33b5d60be</ParentPersonCategoryId> <PersonCategoryId>42af3e62-6822-486d-aa19-1a9931c16546</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": "7113d46e-b003-4ca8-a485-a581dedb6208",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "28569d8d-1ad5-4306-b0bd-31f83e15810b",
"Remarks": "sample string 3",
"Id": "7113d46e-b003-4ca8-a485-a581dedb6208",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"7113d46e-b003-4ca8-a485-a581dedb6208","CategoryName":"sample string 2","ParentPersonCategoryId":"28569d8d-1ad5-4306-b0bd-31f83e15810b","Remarks":"sample string 3","Id":"7113d46e-b003-4ca8-a485-a581dedb6208","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">7113d46e-b003-4ca8-a485-a581dedb6208</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>28569d8d-1ad5-4306-b0bd-31f83e15810b</ParentPersonCategoryId> <PersonCategoryId>7113d46e-b003-4ca8-a485-a581dedb6208</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>