POST api/triggertypes
Creates a trigger type.
Request Information
URI Parameters
None.
Body Parameters
The trigger type model to create with.
TriggerTypeDto| Name | Description | Type | Additional 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": "2caff7ea-f67a-4e37-8237-a7e416e1e95e",
"Name": "sample string 2",
"Description": "sample string 3",
"CreationDate": "2026-01-10T00:45:24.5897894+00:00",
"CreatorUserId": "5e12a1ac-f1d9-4585-b756-a3e3e90c5595",
"RetentionPeriod": 1,
"IsDeleted": true,
"CategoryId": "d6a6edb6-4125-4784-9206-3ad90f2f93ab",
"PropertyTypes": [
{
"Id": "402c0471-0187-43c4-b8b4-9db3e9776680",
"Name": "sample string 2",
"CreationDate": "2026-01-10T00:45:24.5897894+00:00",
"CreatorUserId": "2667088c-f650-4a67-9d07-7b76600c20cb",
"Description": "sample string 5",
"DataType": 0,
"IsRequired": true,
"IsDeleted": true,
"TriggerTypeId": "98d802d0-02ed-4f69-bd3c-61ddb8659f77"
},
{
"Id": "402c0471-0187-43c4-b8b4-9db3e9776680",
"Name": "sample string 2",
"CreationDate": "2026-01-10T00:45:24.5897894+00:00",
"CreatorUserId": "2667088c-f650-4a67-9d07-7b76600c20cb",
"Description": "sample string 5",
"DataType": 0,
"IsRequired": true,
"IsDeleted": true,
"TriggerTypeId": "98d802d0-02ed-4f69-bd3c-61ddb8659f77"
}
]
}
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>d6a6edb6-4125-4784-9206-3ad90f2f93ab</CategoryId>
<CreationDate>2026-01-10T00:45:24.5897894+00:00</CreationDate>
<CreatorUserId>5e12a1ac-f1d9-4585-b756-a3e3e90c5595</CreatorUserId>
<Description>sample string 3</Description>
<Id>2caff7ea-f67a-4e37-8237-a7e416e1e95e</Id>
<IsDeleted>true</IsDeleted>
<Name>sample string 2</Name>
<PropertyTypes>
<TriggerPropertyTypeDto>
<CreationDate>2026-01-10T00:45:24.5897894+00:00</CreationDate>
<CreatorUserId>2667088c-f650-4a67-9d07-7b76600c20cb</CreatorUserId>
<DataType>Bool</DataType>
<Description>sample string 5</Description>
<Id>402c0471-0187-43c4-b8b4-9db3e9776680</Id>
<IsDeleted>true</IsDeleted>
<IsRequired>true</IsRequired>
<Name>sample string 2</Name>
<TriggerTypeId>98d802d0-02ed-4f69-bd3c-61ddb8659f77</TriggerTypeId>
</TriggerPropertyTypeDto>
<TriggerPropertyTypeDto>
<CreationDate>2026-01-10T00:45:24.5897894+00:00</CreationDate>
<CreatorUserId>2667088c-f650-4a67-9d07-7b76600c20cb</CreatorUserId>
<DataType>Bool</DataType>
<Description>sample string 5</Description>
<Id>402c0471-0187-43c4-b8b4-9db3e9776680</Id>
<IsDeleted>true</IsDeleted>
<IsRequired>true</IsRequired>
<Name>sample string 2</Name>
<TriggerTypeId>98d802d0-02ed-4f69-bd3c-61ddb8659f77</TriggerTypeId>
</TriggerPropertyTypeDto>
</PropertyTypes>
<RetentionPeriod>1</RetentionPeriod>
</TriggerTypeDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.