Update automation
| Name | Type | Reference |
|---|---|---|
| space_idrequired | integer | Space ID |
| automation_uidrequired | string | Automation UID |
| Name | Value |
|---|---|
| Content-Type | application/json |
Explain automation types and its attributes
| Automation type | Attributes | Description |
|---|---|---|
Event automation | Automation that triggered by events. Example: When card created on the board N - add tags | |
Date automation | Automation that triggered by date. Example: When 2 days left before card due dates - add sla | |
Button automation | Automation which are triggered manually. Through a button "Automation" in the card interface |
| Description | Response type | Example |
|---|---|---|
| Success | Object |
| Name | Type | Description |
|---|---|---|
| name | string | null | AutomationName |
| sort_order | number | Automation sort order |
| space_uid | string | Space uid |
| updater_id | integer | User id, who created automation |
| company_id | integer | Company id |
| created | string | Created timestamp |
| updated | string | Updated timestamp |
| id | string | Automation uid |
| status | enum | active, disabled, removed, broken |
| type | enum | on_action - event automatation, on_date - due date automation |
| trigger | object | Automation trigger data |
| actions | array of objects | Automation actions |
| conditions | object | Automation conditions |
| Description | Response type | Example |
|---|---|---|
| Invalid token | String |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Feature is not supported by tariff |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Forbidden |
A schema has not been defined for this response code.
| Description | Response type | Example |
|---|---|---|
| Not found | Response body does not exist |
A schema has not been defined for this response code.
Automation Examples:
{
"name": "",
"trigger": {
"type": "card_state_changed",
"hasToFireOnCardCreation": false
},
"actions": [
{
"created": "2023-09-19T07:34:34.112Z",
"type": "add_assignee",
"data": {}
}
]
}{
"name": "",
"trigger": {
"type": "card_moved_in_path",
"hasToFireOnCardCreation": false
},
"conditions": {
"clause": "or",
"created": "2023-09-19T07:49:24.130Z",
"conditions": [
{
"clause": "and",
"created": "2023-09-19T07:49:30.100Z",
"conditions": [
{
"type": "new_path",
"operator": "eq",
"data": {
"boardId": 331,
"columnId": 1003,
"laneId": 644
},
"created": "2023-09-19T07:49:31.130Z"
},
{
"type": "tag",
"operator": "eq",
"data": {
"tagIds": [
128
]
},
"created": "2023-09-19T07:49:31.842Z"
}
]
}
]
},
"actions": [
{
"type": "sort_cards",
"data": {
"sortProperty": "due_date",
"sortDirection": "asc",
"sortWithinColumn": false
},
"created": "2023-09-19T07:34:34.112Z"
}
]
}{
"name": "",
"trigger": {
"type": "card_created",
"hasToFireOnCardCreation": true
},
"conditions": {
"clause": "or",
"created": "2023-09-19T07:49:24.130Z",
"conditions": [
{
"clause": "and",
"created": "2023-09-19T07:49:30.100Z",
"conditions": [
{
"type": "path",
"operator": "eq",
"data": {
"laneId": null,
"boardId": 8,
"columnId": null
},
"created": "2023-09-19T07:49:31.130Z"
},
{
"type": "card_type",
"operator": "eq",
"data": {
"typeIds": [
1
]
},
"created": "2023-09-19T07:49:31.842Z"
}
]
}
]
},
"actions": [
{
"data": {
"direction": "next"
},
"type": "move_on_board",
"created": "2023-09-26T08:29:22.446Z"
},
{
"data": {
"userId": 0
},
"type": "add_assignee",
"created": "2023-09-27T10:19:46.909Z"
}
]
}{
"name": "",
"trigger": {
"type": "due_date_on_date",
"data": {
"variant": "time_left_before_date",
"timezone": "UTC",
"offset": 2,
"offset_unit": "day"
}
},
"actions": [
{
"type": "change_asap",
"data": {
"asap": true
},
"created": "2023-09-27T10:27:05.570Z"
}
]
}{
"name": "Button automation example",
"actions": [
{
"type": "complete_checklists",
"data": {},
"created": "2023-09-27T10:29:05.570Z"
}
]
}Path Parameters
1 curl --request PATCH \
2 --url 'https://example.flowfast.io/api/latest/spaces/{space_id}/automations/{automation_uid}' \
3 --header 'Accept: application/json' \
4 --header 'Content-Type: application/json'
5 Response
ClickTry It!to start a request and see the response here!