9 Trellis API endpoints for workflows, with the scopes, parameters and response each one takes.
Create a workflow
/workspace/{handle}/workflowsScopes
Needs a token holding workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Request bodyapplication/json
WorkflowCreate
descriptionstringnullablenamestringRequiredstatus_mappingsobjectnullablestatusesarray of WorkflowStatusnullable11 fields
colorstringheightnumber (double)iconstringidstringis_defaultbooleannamestringorderintegertypestringwidthnumber (double)xnumber (double)ynumber (double)Responses
201Created
WorkflowResponse
created_atstringcreated_bystringdescriptionstringidstringis_defaultbooleannamestringproject_countintegerstatusesarray of WorkflowStatusnullable11 fields
colorstringheightnumber (double)iconstringidstringis_defaultbooleannamestringorderintegertypestringwidthnumber (double)xnumber (double)ynumber (double)updated_atstringupdated_bystringworkspace_idstringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Get a workflow with its statuses
/workspace/{handle}/workflows/{id}Scopes
Needs a token holding issues:read, issues:write, projects:read or workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredResponses
200OK
WorkflowResponse
created_atstringcreated_bystringdescriptionstringidstringis_defaultbooleannamestringproject_countintegerstatusesarray of WorkflowStatusnullable11 fields
colorstringheightnumber (double)iconstringidstringis_defaultbooleannamestringorderintegertypestringwidthnumber (double)xnumber (double)ynumber (double)updated_atstringupdated_bystringworkspace_idstringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Update a workflow and its statuses
/workspace/{handle}/workflows/{id}Scopes
Needs a token holding workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredRequest bodyapplication/json
WorkflowCreate
descriptionstringnullablenamestringRequiredstatus_mappingsobjectnullablestatusesarray of WorkflowStatusnullable11 fields
colorstringheightnumber (double)iconstringidstringis_defaultbooleannamestringorderintegertypestringwidthnumber (double)xnumber (double)ynumber (double)Responses
200OK
WorkflowResponse
created_atstringcreated_bystringdescriptionstringidstringis_defaultbooleannamestringproject_countintegerstatusesarray of WorkflowStatusnullable11 fields
colorstringheightnumber (double)iconstringidstringis_defaultbooleannamestringorderintegertypestringwidthnumber (double)xnumber (double)ynumber (double)updated_atstringupdated_bystringworkspace_idstringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Delete a workflow
/workspace/{handle}/workflows/{id}Scopes
Needs a token holding workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredResponses
200OK
Confirmation message.
string
defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Make a workflow the workspace default
/workspace/{handle}/workflows/{id}/mark-as-defaultScopes
Needs a token holding workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredResponses
200OK
Confirmation message.
string
defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
List a workflow's statuses
/workspace/{handle}/workflows/{id}/statusesScopes
Needs a token holding issues:read, issues:write, projects:read or workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
idstringRequiredResponses
200OK
array of WorkflowStatusReference
colorstringiconstringidstringis_defaultbooleannamestringtypestringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
List the workspace's workflows
/workspace/{handle}/workflows/all-by-workspaceScopes
Needs a token holding issues:read, issues:write, projects:read or workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Request bodyapplication/json
PaginationAndFilters
exclude_pending_deletionbooleanexclude_user_idsarray of stringnullablefiltersanynullableids_onlybooleaninclude_invitesbooleanlabel_idsarray of stringnullablelimitintegernullablepageintegernullablequerystringnullablerole_excludearray of stringnullablerole_slugsarray of stringnullablesort_bystringnullablesort_dirstringnullablestatusesarray of stringnullableResponses
200OK
object
countintegerUnfiltered item count, where the endpoint reports one. Omitted when zero.
dataarray of WorkflowSummarynullable12 fields
created_atstringdescriptionstringidstringis_defaultbooleannamestringproject_countintegerstatus_countintegerupdated_atstringupdated_bystringupdated_by_avatarstringupdated_by_avatar_gradientstringupdated_by_emailstringlimitintegerPage size used for this response. Omitted when zero.
pageintegerCurrent page, starting at 1. Omitted when zero.
totalintegerNumber of items matching the filters. Omitted when zero.
defaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Get the workspace's default workflow
/workspace/{handle}/workflows/defaultScopes
Needs a token holding issues:read, issues:write, projects:read or workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Responses
200OK
WorkflowResponse
created_atstringcreated_bystringdescriptionstringidstringis_defaultbooleannamestringproject_countintegerstatusesarray of WorkflowStatusnullable11 fields
colorstringheightnumber (double)iconstringidstringis_defaultbooleannamestringorderintegertypestringwidthnumber (double)xnumber (double)ynumber (double)updated_atstringupdated_bystringworkspace_idstringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.
Reorder a workflow's statuses
/workspace/{handle}/workflows/statuses/orderScopes
Needs a token holding workflows:write.
Path parameters
handlestringRequiredWorkspace handle, as it appears in the Trellis URL.
Request bodyapplication/json
array of WorkflowStatusOrder
orderintegerRequiredstatus_idstringRequiredResponses
200OK
Message
messagestringdefaultError. Handlers answer with the JSON `Error` body; workspace, authentication and rate-limit checks that run before the handler answer with a plain-text message.
See Errors for the fields it carries.