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": "828a0a4b-0e4f-49ea-9447-3a1be7abc18e",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "c57ec0a4-183a-433f-b6d0-2486810ed56f",
  "Remarks": "sample string 3",
  "Id": "828a0a4b-0e4f-49ea-9447-3a1be7abc18e",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"828a0a4b-0e4f-49ea-9447-3a1be7abc18e","CategoryName":"sample string 2","ParentPersonCategoryId":"c57ec0a4-183a-433f-b6d0-2486810ed56f","Remarks":"sample string 3","Id":"828a0a4b-0e4f-49ea-9447-3a1be7abc18e","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">828a0a4b-0e4f-49ea-9447-3a1be7abc18e</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>c57ec0a4-183a-433f-b6d0-2486810ed56f</ParentPersonCategoryId>
  <PersonCategoryId>828a0a4b-0e4f-49ea-9447-3a1be7abc18e</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": "04d75a49-e77d-402b-9e7f-7971cbb5ccce",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "d348b6b5-e05b-4197-8d8b-0b8167f78d7b",
  "Remarks": "sample string 3",
  "Id": "04d75a49-e77d-402b-9e7f-7971cbb5ccce",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"04d75a49-e77d-402b-9e7f-7971cbb5ccce","CategoryName":"sample string 2","ParentPersonCategoryId":"d348b6b5-e05b-4197-8d8b-0b8167f78d7b","Remarks":"sample string 3","Id":"04d75a49-e77d-402b-9e7f-7971cbb5ccce","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">04d75a49-e77d-402b-9e7f-7971cbb5ccce</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>d348b6b5-e05b-4197-8d8b-0b8167f78d7b</ParentPersonCategoryId>
  <PersonCategoryId>04d75a49-e77d-402b-9e7f-7971cbb5ccce</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>