POST api/v1/personcategories
Request Information
URI Parameters
None.
Body Parameters
PersonCategoryDetailsName | 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": "3c04e2da-076c-4be5-a4c8-a34999fbb266", "CategoryName": "sample string 2", "ParentPersonCategoryId": "e22de6b3-1fb9-4824-ad13-f451000da269", "Remarks": "sample string 3", "Id": "3c04e2da-076c-4be5-a4c8-a34999fbb266", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"3c04e2da-076c-4be5-a4c8-a34999fbb266","CategoryName":"sample string 2","ParentPersonCategoryId":"e22de6b3-1fb9-4824-ad13-f451000da269","Remarks":"sample string 3","Id":"3c04e2da-076c-4be5-a4c8-a34999fbb266","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">3c04e2da-076c-4be5-a4c8-a34999fbb266</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>e22de6b3-1fb9-4824-ad13-f451000da269</ParentPersonCategoryId> <PersonCategoryId>3c04e2da-076c-4be5-a4c8-a34999fbb266</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PersonCategoryDetailsName | 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": "0979ee16-f911-48f9-aec6-67012bd40c6b", "CategoryName": "sample string 2", "ParentPersonCategoryId": "3e72fea9-4a8a-4409-8c69-16500bc7afdf", "Remarks": "sample string 3", "Id": "0979ee16-f911-48f9-aec6-67012bd40c6b", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"0979ee16-f911-48f9-aec6-67012bd40c6b","CategoryName":"sample string 2","ParentPersonCategoryId":"3e72fea9-4a8a-4409-8c69-16500bc7afdf","Remarks":"sample string 3","Id":"0979ee16-f911-48f9-aec6-67012bd40c6b","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">0979ee16-f911-48f9-aec6-67012bd40c6b</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>3e72fea9-4a8a-4409-8c69-16500bc7afdf</ParentPersonCategoryId> <PersonCategoryId>0979ee16-f911-48f9-aec6-67012bd40c6b</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>