POST api/moduleSettings

Creates a module setting.

Request Information

URI Parameters

None.

Body Parameters

The module setting model to create with.

ModuleSettingDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

Url

string

Required

DisplayName

string

Required

ServiceType

ModuleSettingServiceTypeDto

None.

CreationDate

date

None.

TenantId

globally unique identifier

None.

UserJourneyId

globally unique identifier

None.

Bypassable

boolean

None.

DefaultValue

string

None.

SortIndex

integer

None.

ModuleSettingProperties

Collection of ModuleSettingPropertyDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "dc98c492-8e62-490c-9b30-ce8ff69d4d3d",
  "Name": "sample string 2",
  "Url": "sample string 3",
  "DisplayName": "sample string 4",
  "ServiceType": 0,
  "CreationDate": "2025-12-06T04:46:16.2696144+00:00",
  "TenantId": "9c2cca1a-315a-46f8-b0f4-9a4612c5ab3b",
  "UserJourneyId": "1bc1b0f8-03a6-4cfe-a1f0-082225c7650d",
  "Bypassable": true,
  "DefaultValue": "sample string 9",
  "SortIndex": 10,
  "ModuleSettingProperties": [
    {
      "Id": "a3f6034b-07e0-432f-bfe2-8e7262451def",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2025-12-06T04:46:16.2696144+00:00",
      "ModuleSettingId": "c0a9c9dc-01a7-442b-a79e-a106b3ccaed7"
    },
    {
      "Id": "a3f6034b-07e0-432f-bfe2-8e7262451def",
      "Name": "sample string 2",
      "Value": "sample string 3",
      "CreationDate": "2025-12-06T04:46:16.2696144+00:00",
      "ModuleSettingId": "c0a9c9dc-01a7-442b-a79e-a106b3ccaed7"
    }
  ]
}

application/xml, text/xml

Sample:
<ModuleSettingDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Settings.Models">
  <Bypassable>true</Bypassable>
  <CreationDate>2025-12-06T04:46:16.2696144+00:00</CreationDate>
  <DefaultValue>sample string 9</DefaultValue>
  <DisplayName>sample string 4</DisplayName>
  <Id>dc98c492-8e62-490c-9b30-ce8ff69d4d3d</Id>
  <ModuleSettingProperties>
    <ModuleSettingPropertyDto>
      <CreationDate>2025-12-06T04:46:16.2696144+00:00</CreationDate>
      <Id>a3f6034b-07e0-432f-bfe2-8e7262451def</Id>
      <ModuleSettingId>c0a9c9dc-01a7-442b-a79e-a106b3ccaed7</ModuleSettingId>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </ModuleSettingPropertyDto>
    <ModuleSettingPropertyDto>
      <CreationDate>2025-12-06T04:46:16.2696144+00:00</CreationDate>
      <Id>a3f6034b-07e0-432f-bfe2-8e7262451def</Id>
      <ModuleSettingId>c0a9c9dc-01a7-442b-a79e-a106b3ccaed7</ModuleSettingId>
      <Name>sample string 2</Name>
      <Value>sample string 3</Value>
    </ModuleSettingPropertyDto>
  </ModuleSettingProperties>
  <Name>sample string 2</Name>
  <ServiceType>None</ServiceType>
  <SortIndex>10</SortIndex>
  <TenantId>9c2cca1a-315a-46f8-b0f4-9a4612c5ab3b</TenantId>
  <Url>sample string 3</Url>
  <UserJourneyId>1bc1b0f8-03a6-4cfe-a1f0-082225c7650d</UserJourneyId>
</ModuleSettingDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"f7763bda-1014-4067-a682-59e0207fbec6"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">f7763bda-1014-4067-a682-59e0207fbec6</guid>