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": "c45a7f11-4c9b-4670-b302-07a6d7a0a1cf",
"Name": "sample string 2",
"Value": "sample string 3",
"CreationDate": "2025-12-06T04:46:15.6887137+00:00",
"DataType": 0,
"TenantId": "15523703-3807-4094-970b-fb5877cf060b"
}
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-06T04:46:15.6887137+00:00</CreationDate> <DataType>Bool</DataType> <Id>c45a7f11-4c9b-4670-b302-07a6d7a0a1cf</Id> <Name>sample string 2</Name> <TenantId>15523703-3807-4094-970b-fb5877cf060b</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:
"96ddaa81-a2a7-436a-a5a4-cd93d02c884f"
application/xml, text/xml
Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">96ddaa81-a2a7-436a-a5a4-cd93d02c884f</guid>