POST api/profilepropertytypes

Request Information

URI Parameters

None.

Body Parameters

ProfilePropertyTypeDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

CreatorUserId

globally unique identifier

None.

CreationDate

date

Required

Description

string

None.

DefaultValue

string

None.

DataType

ProfilePropertyDataTypeDto

None.

IsRequired

boolean

None.

MinimumValueExpression

string

String length: inclusive between 0 and 50

MaximumValueExpression

string

String length: inclusive between 0 and 50

SortIndex

integer

None.

SecurityMode

ProfilePropertySecurityModeDto

None.

SecurityGroupId

globally unique identifier

None.

IsDeleted

boolean

None.

Options

Collection of ProfilePropertyOptionDto

None.

TenantIds

Collection of globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "2308d1df-2f69-4f76-bb76-d51a27c905a0",
  "Name": "sample string 2",
  "CreatorUserId": "81306553-5962-4509-8819-09e0dd92d684",
  "CreationDate": "2025-12-06T04:54:11.7732469+00:00",
  "Description": "sample string 5",
  "DefaultValue": "sample string 6",
  "DataType": 0,
  "IsRequired": true,
  "MinimumValueExpression": "sample string 8",
  "MaximumValueExpression": "sample string 9",
  "SortIndex": 10,
  "SecurityMode": 0,
  "SecurityGroupId": "4d503b2f-b362-4739-987a-d9068a7d880d",
  "IsDeleted": true,
  "Options": [
    {
      "Id": "c84cb0a2-df7c-469a-9d38-3b3ea114b4df",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2025-12-06T04:54:11.7732469+00:00",
      "ProfilePropertyTypeId": "8278f33d-9aae-49da-a09d-af26a567af6f"
    },
    {
      "Id": "c84cb0a2-df7c-469a-9d38-3b3ea114b4df",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2025-12-06T04:54:11.7732469+00:00",
      "ProfilePropertyTypeId": "8278f33d-9aae-49da-a09d-af26a567af6f"
    }
  ],
  "TenantIds": [
    "3d69afbb-ffd1-4cb1-997e-c88e05e3f8ee",
    "51aa4c1b-5240-4cd3-8477-b5c6adb6a36d"
  ]
}

application/xml, text/xml

Sample:
<ProfilePropertyTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Profile.Models">
  <CreationDate>2025-12-06T04:54:11.7732469+00:00</CreationDate>
  <CreatorUserId>81306553-5962-4509-8819-09e0dd92d684</CreatorUserId>
  <DataType>Bool</DataType>
  <DefaultValue>sample string 6</DefaultValue>
  <Description>sample string 5</Description>
  <Id>2308d1df-2f69-4f76-bb76-d51a27c905a0</Id>
  <IsDeleted>true</IsDeleted>
  <IsRequired>true</IsRequired>
  <MaximumValueExpression>sample string 9</MaximumValueExpression>
  <MinimumValueExpression>sample string 8</MinimumValueExpression>
  <Name>sample string 2</Name>
  <Options>
    <ProfilePropertyOptionDto>
      <CreationDate>2025-12-06T04:54:11.7732469+00:00</CreationDate>
      <Id>c84cb0a2-df7c-469a-9d38-3b3ea114b4df</Id>
      <Name>sample string 2</Name>
      <ProfilePropertyTypeId>8278f33d-9aae-49da-a09d-af26a567af6f</ProfilePropertyTypeId>
      <Value>sample string 3</Value>
    </ProfilePropertyOptionDto>
    <ProfilePropertyOptionDto>
      <CreationDate>2025-12-06T04:54:11.7732469+00:00</CreationDate>
      <Id>c84cb0a2-df7c-469a-9d38-3b3ea114b4df</Id>
      <Name>sample string 2</Name>
      <ProfilePropertyTypeId>8278f33d-9aae-49da-a09d-af26a567af6f</ProfilePropertyTypeId>
      <Value>sample string 3</Value>
    </ProfilePropertyOptionDto>
  </Options>
  <SecurityGroupId>4d503b2f-b362-4739-987a-d9068a7d880d</SecurityGroupId>
  <SecurityMode>None</SecurityMode>
  <SortIndex>10</SortIndex>
  <TenantIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>3d69afbb-ffd1-4cb1-997e-c88e05e3f8ee</d2p1:guid>
    <d2p1:guid>51aa4c1b-5240-4cd3-8477-b5c6adb6a36d</d2p1:guid>
  </TenantIds>
</ProfilePropertyTypeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.