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": "50931ffd-5266-46d4-a11a-b1cb00e805b2",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "a0f3a20f-0d50-40d5-947f-edb87d02bbad",
  "Remarks": "sample string 3",
  "Id": "50931ffd-5266-46d4-a11a-b1cb00e805b2",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"50931ffd-5266-46d4-a11a-b1cb00e805b2","CategoryName":"sample string 2","ParentPersonCategoryId":"a0f3a20f-0d50-40d5-947f-edb87d02bbad","Remarks":"sample string 3","Id":"50931ffd-5266-46d4-a11a-b1cb00e805b2","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">50931ffd-5266-46d4-a11a-b1cb00e805b2</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>a0f3a20f-0d50-40d5-947f-edb87d02bbad</ParentPersonCategoryId>
  <PersonCategoryId>50931ffd-5266-46d4-a11a-b1cb00e805b2</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": "c1653485-9ca8-4fda-954a-c6edc326303a",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "6ce77be7-8f21-4153-b0cd-40fe6f6e6dde",
  "Remarks": "sample string 3",
  "Id": "c1653485-9ca8-4fda-954a-c6edc326303a",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"c1653485-9ca8-4fda-954a-c6edc326303a","CategoryName":"sample string 2","ParentPersonCategoryId":"6ce77be7-8f21-4153-b0cd-40fe6f6e6dde","Remarks":"sample string 3","Id":"c1653485-9ca8-4fda-954a-c6edc326303a","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">c1653485-9ca8-4fda-954a-c6edc326303a</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>6ce77be7-8f21-4153-b0cd-40fe6f6e6dde</ParentPersonCategoryId>
  <PersonCategoryId>c1653485-9ca8-4fda-954a-c6edc326303a</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>