POST api/triggertypes

Creates a trigger type.

Request Information

URI Parameters

None.

Body Parameters

The trigger type model to create with.

TriggerTypeDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

Name

string

Required

String length: inclusive between 0 and 512

Description

string

None.

CreationDate

date

None.

CreatorUserId

globally unique identifier

None.

RetentionPeriod

integer

None.

IsDeleted

boolean

None.

CategoryId

globally unique identifier

None.

PropertyTypes

Collection of TriggerPropertyTypeDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "eb2c2b36-87ba-47d4-a2cc-c4e832de60db",
  "Name": "sample string 2",
  "Description": "sample string 3",
  "CreationDate": "2025-12-11T20:15:00.6498679+00:00",
  "CreatorUserId": "8399f57a-1a0b-4583-86c9-2427f7cdee5e",
  "RetentionPeriod": 1,
  "IsDeleted": true,
  "CategoryId": "20283008-0114-475f-a24e-eff74e0ab2a0",
  "PropertyTypes": [
    {
      "Id": "b28067a0-6561-438e-89a4-15b765773919",
      "Name": "sample string 2",
      "CreationDate": "2025-12-11T20:15:00.6498679+00:00",
      "CreatorUserId": "23e46a11-34e8-47d1-9293-81035b047842",
      "Description": "sample string 5",
      "DataType": 0,
      "IsRequired": true,
      "IsDeleted": true,
      "TriggerTypeId": "8a2ca289-d911-4280-a863-f52b957d724d"
    },
    {
      "Id": "b28067a0-6561-438e-89a4-15b765773919",
      "Name": "sample string 2",
      "CreationDate": "2025-12-11T20:15:00.6498679+00:00",
      "CreatorUserId": "23e46a11-34e8-47d1-9293-81035b047842",
      "Description": "sample string 5",
      "DataType": 0,
      "IsRequired": true,
      "IsDeleted": true,
      "TriggerTypeId": "8a2ca289-d911-4280-a863-f52b957d724d"
    }
  ]
}

application/xml, text/xml

Sample:
<TriggerTypeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aardvark.Notification.Models">
  <CategoryId>20283008-0114-475f-a24e-eff74e0ab2a0</CategoryId>
  <CreationDate>2025-12-11T20:15:00.6498679+00:00</CreationDate>
  <CreatorUserId>8399f57a-1a0b-4583-86c9-2427f7cdee5e</CreatorUserId>
  <Description>sample string 3</Description>
  <Id>eb2c2b36-87ba-47d4-a2cc-c4e832de60db</Id>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 2</Name>
  <PropertyTypes>
    <TriggerPropertyTypeDto>
      <CreationDate>2025-12-11T20:15:00.6498679+00:00</CreationDate>
      <CreatorUserId>23e46a11-34e8-47d1-9293-81035b047842</CreatorUserId>
      <DataType>Bool</DataType>
      <Description>sample string 5</Description>
      <Id>b28067a0-6561-438e-89a4-15b765773919</Id>
      <IsDeleted>true</IsDeleted>
      <IsRequired>true</IsRequired>
      <Name>sample string 2</Name>
      <TriggerTypeId>8a2ca289-d911-4280-a863-f52b957d724d</TriggerTypeId>
    </TriggerPropertyTypeDto>
    <TriggerPropertyTypeDto>
      <CreationDate>2025-12-11T20:15:00.6498679+00:00</CreationDate>
      <CreatorUserId>23e46a11-34e8-47d1-9293-81035b047842</CreatorUserId>
      <DataType>Bool</DataType>
      <Description>sample string 5</Description>
      <Id>b28067a0-6561-438e-89a4-15b765773919</Id>
      <IsDeleted>true</IsDeleted>
      <IsRequired>true</IsRequired>
      <Name>sample string 2</Name>
      <TriggerTypeId>8a2ca289-d911-4280-a863-f52b957d724d</TriggerTypeId>
    </TriggerPropertyTypeDto>
  </PropertyTypes>
  <RetentionPeriod>1</RetentionPeriod>
</TriggerTypeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.