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": "6808ba7c-229d-4d66-99d1-5e2345844be3", "CategoryName": "sample string 2", "ParentPersonCategoryId": "00246d13-a7e5-4a45-a171-abfce223b7be", "Remarks": "sample string 3", "Id": "6808ba7c-229d-4d66-99d1-5e2345844be3", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"6808ba7c-229d-4d66-99d1-5e2345844be3","CategoryName":"sample string 2","ParentPersonCategoryId":"00246d13-a7e5-4a45-a171-abfce223b7be","Remarks":"sample string 3","Id":"6808ba7c-229d-4d66-99d1-5e2345844be3","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">6808ba7c-229d-4d66-99d1-5e2345844be3</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>00246d13-a7e5-4a45-a171-abfce223b7be</ParentPersonCategoryId> <PersonCategoryId>6808ba7c-229d-4d66-99d1-5e2345844be3</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": "55859279-dc73-4232-9a22-488f02e30961", "CategoryName": "sample string 2", "ParentPersonCategoryId": "dea9529d-3532-414e-9771-7a5314695b05", "Remarks": "sample string 3", "Id": "55859279-dc73-4232-9a22-488f02e30961", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"55859279-dc73-4232-9a22-488f02e30961","CategoryName":"sample string 2","ParentPersonCategoryId":"dea9529d-3532-414e-9771-7a5314695b05","Remarks":"sample string 3","Id":"55859279-dc73-4232-9a22-488f02e30961","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">55859279-dc73-4232-9a22-488f02e30961</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>dea9529d-3532-414e-9771-7a5314695b05</ParentPersonCategoryId> <PersonCategoryId>55859279-dc73-4232-9a22-488f02e30961</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>