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": "6dbb9238-289d-42c9-a333-57510aa0ea7b",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2026-01-11T20:20:23.3109576+00:00",
"DataType": 0,
"TenantId": "8049f8a8-ceac-41a4-9552-869ffa1234b4"
}
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:20:23.3109576+00:00</CreationDate> <DataType>Bool</DataType> <Id>6dbb9238-289d-42c9-a333-57510aa0ea7b</Id> <Name>sample string 2</Name> <TenantId>8049f8a8-ceac-41a4-9552-869ffa1234b4</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:
"bc205b40-510e-4762-98c0-0578c9395033"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">bc205b40-510e-4762-98c0-0578c9395033</guid>