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": "9e49d8ef-02ab-474c-a238-1477e2191002", "CategoryName": "sample string 2", "ParentPersonCategoryId": "a2a8fc8c-d77d-4542-9e48-bc3e0aea43ff", "Remarks": "sample string 3", "Id": "9e49d8ef-02ab-474c-a238-1477e2191002", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"9e49d8ef-02ab-474c-a238-1477e2191002","CategoryName":"sample string 2","ParentPersonCategoryId":"a2a8fc8c-d77d-4542-9e48-bc3e0aea43ff","Remarks":"sample string 3","Id":"9e49d8ef-02ab-474c-a238-1477e2191002","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">9e49d8ef-02ab-474c-a238-1477e2191002</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>a2a8fc8c-d77d-4542-9e48-bc3e0aea43ff</ParentPersonCategoryId> <PersonCategoryId>9e49d8ef-02ab-474c-a238-1477e2191002</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": "d663e026-a15b-42b1-beb9-81285b64f764", "CategoryName": "sample string 2", "ParentPersonCategoryId": "bfd8b5f8-ce7c-445c-b720-26a5e556be1d", "Remarks": "sample string 3", "Id": "d663e026-a15b-42b1-beb9-81285b64f764", "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"PersonCategoryId":"d663e026-a15b-42b1-beb9-81285b64f764","CategoryName":"sample string 2","ParentPersonCategoryId":"bfd8b5f8-ce7c-445c-b720-26a5e556be1d","Remarks":"sample string 3","Id":"d663e026-a15b-42b1-beb9-81285b64f764","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">d663e026-a15b-42b1-beb9-81285b64f764</Id> <CategoryName>sample string 2</CategoryName> <ParentPersonCategoryId>bfd8b5f8-ce7c-445c-b720-26a5e556be1d</ParentPersonCategoryId> <PersonCategoryId>d663e026-a15b-42b1-beb9-81285b64f764</PersonCategoryId> <Remarks>sample string 3</Remarks> </PersonCategoryDetails>