POST api/settings
Creates a setting.
Request Information
URI Parameters
None.
Body Parameters
The setting model to create with.
SettingDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
Required |
|
| Value | string |
Required |
|
| CreationDate | date |
None. |
|
| DataType | SettingDataTypeDto |
None. |
|
| TenantId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "9922eb34-554c-493e-a620-5475784ad490",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2025-12-06T03:11:23.6307752+00:00",
"DataType": 0,
"TenantId": "176f6a0b-992d-4585-b630-0d777f8802a3"
}
application/xml, text/xml
Sample:
<SettingDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Settings.Models"> <CreationDate>2025-12-06T03:11:23.6307752+00:00</CreationDate> <DataType>Bool</DataType> <Id>9922eb34-554c-493e-a620-5475784ad490</Id> <Name>sample string 2</Name> <TenantId>176f6a0b-992d-4585-b630-0d777f8802a3</TenantId> <Value>sample string 3</Value> </SettingDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
globally unique identifierResponse Formats
application/json, text/json
Sample:
"5af1d1f1-38c6-4044-845d-f43b01e93c6d"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5af1d1f1-38c6-4044-845d-f43b01e93c6d</guid>