POST api/v1/personcategories

Request Information

URI Parameters

None.

Body Parameters

PersonCategoryDetails
NameDescriptionTypeAdditional 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": "74fbd936-2d4a-4be8-8f9d-a659824da0c3",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "b18f4eb7-81c1-437b-a8b1-61b3f1fa9d64",
  "Remarks": "sample string 3",
  "Id": "74fbd936-2d4a-4be8-8f9d-a659824da0c3",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"74fbd936-2d4a-4be8-8f9d-a659824da0c3","CategoryName":"sample string 2","ParentPersonCategoryId":"b18f4eb7-81c1-437b-a8b1-61b3f1fa9d64","Remarks":"sample string 3","Id":"74fbd936-2d4a-4be8-8f9d-a659824da0c3","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">74fbd936-2d4a-4be8-8f9d-a659824da0c3</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>b18f4eb7-81c1-437b-a8b1-61b3f1fa9d64</ParentPersonCategoryId>
  <PersonCategoryId>74fbd936-2d4a-4be8-8f9d-a659824da0c3</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PersonCategoryDetails
NameDescriptionTypeAdditional 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": "3e472f51-3b7a-404a-92e8-5c6edc4f016b",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "ed476668-e871-4586-ab25-0e004443c26e",
  "Remarks": "sample string 3",
  "Id": "3e472f51-3b7a-404a-92e8-5c6edc4f016b",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"3e472f51-3b7a-404a-92e8-5c6edc4f016b","CategoryName":"sample string 2","ParentPersonCategoryId":"ed476668-e871-4586-ab25-0e004443c26e","Remarks":"sample string 3","Id":"3e472f51-3b7a-404a-92e8-5c6edc4f016b","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">3e472f51-3b7a-404a-92e8-5c6edc4f016b</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>ed476668-e871-4586-ab25-0e004443c26e</ParentPersonCategoryId>
  <PersonCategoryId>3e472f51-3b7a-404a-92e8-5c6edc4f016b</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>