The query parameters available for this method. HTTP queries take the form of '?contains=myTitle&containsField=name&sort=name&order=1. An equivalent task configuration would be '{`contains`: `myTitle`, `containsField`: `name`, `sort`: `name`, `order`: 1}'
{
"type": "object",
"properties": {
"queryParameters": {
"title": "queryParameters",
"type": "object",
"properties": {
"contains": {
"type": "string",
"examples": [
"event"
],
"description": "the value for a contains query. if the property with the key of containsField does not have a value that contains this string, then filter out the document"
},
"containsField": {
"type": "string",
"examples": [
"name"
],
"description": "the field to run a contains query on"
},
"equals": {
"type": "string",
"examples": [
"my event trigger"
],
"description": "the value for an equals query. if the property with the key of equalsField does not have a value that equals this string, then filter out the document"
},
"equalsField": {
"type": "string",
"examples": [
"name"
],
"description": "the field to run an equals query on"
},
"startsWith": {
"type": "string",
"examples": [
"my"
],
"description": "the value for a startsWith query. if the property with the key of startsWithField does not have a value that starts with this string, then filter out the document"
},
"startsWithField": {
"type": "string",
"examples": [
"name"
],
"description": "the field to run a startsWith query on"
},
"greaterThanField": {
"type": "string",
"examples": [
"lastExecuted"
],
"description": "the field to run a greater than query on"
},
"greaterThan": {
"type": "string",
"examples": [
"04/06/2021",
"Thu Dec 03 2020 14:55:00 GMT-0500 (Eastern Standard Time)",
"2020-12-03T19:55:43.189Z",
"1617681600000"
],
"description": "the value to use for the greater than query. If the value is a valid date string, then it will be converted to a unix timestamp in milliseconds"
},
"lessThanField": {
"type": "string",
"examples": [
"lastExecuted"
],
"description": "the field to run a less than query on"
},
"lessThan": {
"type": "string",
"examples": [
"04/06/2021",
"Thu Nov 15 2018 01:30:00 GMT-0500 (Eastern Standard Time)",
"2020-12-03T19:55:43.189Z",
"1615611600000"
],
"description": "the value to use for the less than query. If the value is a valid date string, then it will be converted to a unix timestamp in milliseconds"
},
"enabled": {
"type": "boolean",
"description": "if true, then only return trigger documents that are enabled"
},
"actionId": {
"type": "string",
"description": "if provided, only return trigger documents with this action id"
},
"limit": {
"type": "integer",
"description": "Number of results to return. Used for pagination.",
"default": 25,
"minimum": 0,
"examples": [
1,
10,
50
]
},
"skip": {
"type": "integer",
"description": "Number of results to skip. Used for pagination.",
"default": 0,
"minimum": 0,
"examples": [
1,
10,
50
]
},
"order": {
"type": "integer",
"description": "The sort direction: 1 for ascending or -1 for descending.",
"default": 1,
"enum": [
-1,
1
]
},
"sort": {
"type": "string",
"description": "Field to sort by. Default is name.",
"default": "name",
"enum": [
"name"
]
}
}
}
},
"required": [
"queryParameters"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name
Type
Description
result
object
The Triggers that matched the search query.
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": [
{
"name": "do velit",
"description": 3208011.15973413,
"type": false,
"enabled": "aliquip ullamco",
"actionType": -70870949.06580025,
"actionId": "officia dolor laboris qui tempor",
"lastExecuted": 48514470,
"createdBy": "laboris occaecat dolore fugiat",
"created": "magna Ut",
"lastUpdatedBy": true,
"lastUpdated": 68440696,
"formData": "nisi Duis in occaecat",
"legacyWrapper": 95317690.70240235,
"firstRunAt": -88103078,
"nextRunAt": false,
"processMissedRuns": -95815387.31176841,
"locked": -49773884.793932274,
"repeatUnit": true,
"repeatFrequency": -66714799,
"repeatInterval": -68822355,
"_id": false,
"formId": -56921959.24090626
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "7b4dc05229341c73ff5f1deb",
"lastExecuted": null,
"createdBy": "in laborum minim quis in",
"created": "1986-02-27T16:51:15.459Z",
"lastUpdatedBy": "cillum in amet eiusmod qui",
"lastUpdated": "1950-06-02T01:40:32.231Z",
"source": "cillum sed do est",
"topic": "fugiat in reprehenderit dolor aute",
"schema": null,
"legacyWrapper": true,
"_id": "a7387875a4ff037da0e68e29",
"jst": null,
"migrationVersion": -84602593
}
]
}