Logo of FrontifyDeveloper portalArrow to the right
GraphQL reference
Mutation

createAssetWorkflowTask():CreateAssetWorkflowTask
Beta

Create a new WorkflowTask for an Asset in a given WorkflowStatus. Requires basic:write scope to be accessible and Project permission level EDIT.

All mutations have exactly one input field called input with a unique input and return type. This is useful to write mutations with variables, so there is always one single variable per mutation. This makes it easier to use and reuse them.

Input fields of CreateAssetWorkflowTaskInput
assetId: ID!
Beta

Id of the Asset which should be linked to the WorkflowTask.

workflowStatusId: ID!
Beta

Id of the WorkflowStatus where the WorkflowTask should be created.

assigneeUserIds: [ID!]
Beta

List of User ids to be assigned to the WorkflowTask. Currently, only one Id is supported.

statusEnterMessage: String
Beta

WorkflowTask enter message. Optionally required by a EnterRule of the given WorkflowStatus.

Fields of CreateAssetWorkflowTask
workflowTask:WorkflowTask
Beta

The newly created WorkflowTask.