PATCH
/
workspace
/
trello
/
{workspaceId}
/
actions
/
{actionId}
curl --request PATCH \
  --url https://api.hyra.io/workspace/trello/{workspaceId}/actions/{actionId} \
  --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"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required
actionId
string
required

Body

application/json · object[]
type
enum<string>
required
Available options:
trigger,
action
group
string
name
string
required
fields
object[]
required

Response

200 - application/json
_id
string
required
triggers
object[]
required
workspace
string
required
created_by
string
required
createdAt
string
required
updatedAt
string
required