POST api/v1/personcategories
Inserts the specified personCategory details.
Request Information
URI Parameters
None.
Body Parameters
The personCategory details.
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": "ec318d1f-2870-4781-871d-1b7c140808ce",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "c93a691b-5e7b-4150-9706-a4c0d79b1780",
"Remarks": "sample string 3",
"Id": "ec318d1f-2870-4781-871d-1b7c140808ce",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"ec318d1f-2870-4781-871d-1b7c140808ce","CategoryName":"sample string 2","ParentPersonCategoryId":"c93a691b-5e7b-4150-9706-a4c0d79b1780","Remarks":"sample string 3","Id":"ec318d1f-2870-4781-871d-1b7c140808ce","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">ec318d1f-2870-4781-871d-1b7c140808ce</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>c93a691b-5e7b-4150-9706-a4c0d79b1780</ParentPersonCategoryId> <PersonCategoryId>ec318d1f-2870-4781-871d-1b7c140808ce</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>
application/x-www-form-urlencoded
Sample:
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": "af2e8631-ed9f-4111-bf12-e550cb770513",
"CategoryName": "sample string 2",
"ParentPersonCategoryId": "7813caf9-24a4-4924-995f-427bfd80724a",
"Remarks": "sample string 3",
"Id": "af2e8631-ed9f-4111-bf12-e550cb770513",
"CanUpdateRecord": true,
"CanDeleteRecord": true
}
text/html
Sample:
{"PersonCategoryId":"af2e8631-ed9f-4111-bf12-e550cb770513","CategoryName":"sample string 2","ParentPersonCategoryId":"7813caf9-24a4-4924-995f-427bfd80724a","Remarks":"sample string 3","Id":"af2e8631-ed9f-4111-bf12-e550cb770513","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">af2e8631-ed9f-4111-bf12-e550cb770513</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>7813caf9-24a4-4924-995f-427bfd80724a</ParentPersonCategoryId> <PersonCategoryId>af2e8631-ed9f-4111-bf12-e550cb770513</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>