Create a new action
curl --request POST \
--url https://api.hyra.io/workspace/trello/{workspaceId}/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"type": "trigger",
"group": "<string>",
"name": "<string>",
"fields": [
{
"type": "regex",
"value": "<string>",
"reset_type": "never",
"after": 123,
"on": 123,
"grace": 123
}
]
}
]'
{
"_id": "<string>",
"triggers": [
{
"type": "<string>",
"group": "<string>",
"name": "<string>",
"fields": [
{
"type": "<string>",
"value": "<string>",
"reset_type": "<string>",
"after": 123,
"on": 123,
"grace": 123
}
]
}
],
"workspace": "<string>",
"created_by": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The body is of type object[]
.
Successful response
curl --request POST \
--url https://api.hyra.io/workspace/trello/{workspaceId}/actions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
{
"type": "trigger",
"group": "<string>",
"name": "<string>",
"fields": [
{
"type": "regex",
"value": "<string>",
"reset_type": "never",
"after": 123,
"on": 123,
"grace": 123
}
]
}
]'
{
"_id": "<string>",
"triggers": [
{
"type": "<string>",
"group": "<string>",
"name": "<string>",
"fields": [
{
"type": "<string>",
"value": "<string>",
"reset_type": "<string>",
"after": 123,
"on": 123,
"grace": 123
}
]
}
],
"workspace": "<string>",
"created_by": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}