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": "9ae2090b-2fe8-4780-be22-3161498a3737",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "f6789a63-09fb-41ca-9be4-23b5dec12c78",
  "Remarks": "sample string 3",
  "Id": "9ae2090b-2fe8-4780-be22-3161498a3737",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"9ae2090b-2fe8-4780-be22-3161498a3737","CategoryName":"sample string 2","ParentPersonCategoryId":"f6789a63-09fb-41ca-9be4-23b5dec12c78","Remarks":"sample string 3","Id":"9ae2090b-2fe8-4780-be22-3161498a3737","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">9ae2090b-2fe8-4780-be22-3161498a3737</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>f6789a63-09fb-41ca-9be4-23b5dec12c78</ParentPersonCategoryId>
  <PersonCategoryId>9ae2090b-2fe8-4780-be22-3161498a3737</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": "568660b6-3759-48f1-ae5f-48ebce376cde",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "0c766061-6165-4727-b9ba-dd174c92e030",
  "Remarks": "sample string 3",
  "Id": "568660b6-3759-48f1-ae5f-48ebce376cde",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"568660b6-3759-48f1-ae5f-48ebce376cde","CategoryName":"sample string 2","ParentPersonCategoryId":"0c766061-6165-4727-b9ba-dd174c92e030","Remarks":"sample string 3","Id":"568660b6-3759-48f1-ae5f-48ebce376cde","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">568660b6-3759-48f1-ae5f-48ebce376cde</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>0c766061-6165-4727-b9ba-dd174c92e030</ParentPersonCategoryId>
  <PersonCategoryId>568660b6-3759-48f1-ae5f-48ebce376cde</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>