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": "eaa69373-6211-490d-9ed3-5bcc38a8a146",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-11T20:56:28.8650194+00:00",
"DataType": 0,
"TenantId": "d62df369-8743-497e-902a-df9b915acee6"
}
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>2026-01-11T20:56:28.8650194+00:00</CreationDate> <DataType>Bool</DataType> <Id>eaa69373-6211-490d-9ed3-5bcc38a8a146</Id> <Name>sample string 2</Name> <TenantId>d62df369-8743-497e-902a-df9b915acee6</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:
"a61c6cae-b0b3-4ea7-be2e-41eded43d72c"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">a61c6cae-b0b3-4ea7-be2e-41eded43d72c</guid>