Actions
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
PATCH | |
DELETE | |
GET | |
POST |
List all actions
Required API key scopes
action:readQuery parameters
- formatstringOne of:
"csv""json" - limitinteger
- offsetinteger
- searchstring
Response
Example request
GET /api /projects /:project_id /actionsExample response
Status 200
RESPONSE
Create actions
Required API key scopes
action:writeQuery parameters
- formatstringOne of:
"csv""json"
Request parameters
- namestringnull
- descriptionstring
- tagsarray
- post_to_slackboolean
- slack_message_formatstring
- stepsarray
- deletedboolean
- last_calculated_atstring
- pinned_atstringnull
- _create_in_folderstring
Response
Example request
POST /api /projects /:project_id /actionsExample response
Status 201
RESPONSE
Retrieve actions
Required API key scopes
action:readPath parameters
- idinteger
Query parameters
- formatstringOne of:
"csv""json"
Response
Example request
GET /api /projects /:project_id /actions /:idExample response
Status 200
RESPONSE
Update actions
Required API key scopes
action:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- namestringnull
- descriptionstring
- tagsarray
- post_to_slackboolean
- slack_message_formatstring
- stepsarray
- deletedboolean
- last_calculated_atstring
- pinned_atstringnull
- _create_in_folderstring
Response
Example request
PATCH /api /projects /:project_id /actions /:idExample response
Status 200
RESPONSE
Delete actions
Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
Required API key scopes
action:writePath parameters
- idinteger
Query parameters
- formatstringOne of:
"csv""json"
Example request
DELETE /api /projects /:project_id /actions /:idExample response
Status 405 No response body
List all actions references
Required API key scopes
action:readPath parameters
- idinteger
Query parameters
- formatstringOne of:
"csv""json"
Example request
GET /api /projects /:project_id /actions /:id /referencesExample response
Status 200
RESPONSE
Create actions bulk update tags
Bulk update tags on multiple objects.
PAT access: this action has no required_scopes= on the decorator —
inheriting viewsets must add "bulk_update_tags" to their
scope_object_write_actions list to accept personal API keys.
Without that opt-in, APIScopePermission rejects PAT requests with
"This action does not support personal API key access". Done per-viewset
so granting <scope>:write for one resource doesn't leak access to
sibling resources that share this mixin.
Accepts:
- {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]}
Actions:
- "add": Add tags to existing tags on each object
- "remove": Remove specific tags from each object
- "set": Replace all tags on each object with the provided list
Query parameters
- formatstringOne of:
"csv""json"
Request parameters
- idsarray
- action
- tagsarray
Response
Example request
POST /api /projects /:project_id /actions /bulk_update_tagsExample response
Status 200
RESPONSE