Workflows

Workflows in Type CMS enable project administrators to implement structured review cycles for content, ensuring high standards of quality and compliance before publication. These workflows can include multiple stages such as creative review, legal review, and executive review, tailored to meet specific content requirements. Administrators can apply workflows to all content, specific entries, or particular content types, providing granular control over the publication process. This ensures content is only published after meeting all necessary criteria and approvals.


get

List workflows

List all workflows in a project

Required attributes

projectId
string
Your projectId

Optional attributes

None
Request
get
/api/projects/:projectId/workflows
Response

get

Retrieve a workflow

Retrieves a single workflow based on the provided workflow ID

Required attributes

projectId
string
Your project ID
workflowId
string
The ID of the workflow to retrieve

Optional attributes

None
Request
get
/api/projects/:projectId/workflows/:workflowId
Response

post

Create a workflow

Creates a new workflow

Required attributes

projectId
string
Your project ID
title
string
The name of the new workflow

Optional attributes

description
string
A description for the new workflow
pipeline
pipelineObject[]
An array of pipeline objects (workflow stages) for the workflow
conditions
conditionsObject
Request
post
/api/projects/:projectId/workflows
Response

patch

Update a workflow

Updates attributes for a workflow. Any workflows that are currently in progress on an entry will continue with the previous version of the workflow. Any subsequent workflows will include the updates from this operation.

Required attributes

projectId
string
Your project ID
workflowId
string
The ID of the workflow to update

Optional attributes

title
string
The name of the workflow
description
string
A description for the workflow
pipeline
pipelineObject[]
An array of pipeline objects (workflow stages) for the workflow
conditions
conditionsObject[]
An array of workflow conditions to apply to the workflow
Request
patch
/api/projects/:projectId/workflows/:workflowId
Response

delete

Delete a workflow

Deletes a workflow. This will also cancel any workflows currently in progress for associated entries.

Required attributes

projectId
string
Your project ID
workflowId
string
The ID of the workflow to remove

Optional attributes

None
Request
delete
/api/projects/:projectId/workflows/:workflowId
Response
Last modified 7/6/2024, 5:26:09 PM