Skip to main content
POST
Create a new action

Authorizations

X-Session-Token
string
header
required

Session token for authentication.

Query Parameters

include
enum<string>[]

A comma separated list of related resources to include.

Available options:
assigned_users,
assigned_teams,
form_submission,
triggering_job_role,
closed_by

Body

application/vnd.api+json

The action to create. organisation is required. At least one assignee must be provided across assigned_users and assigned_teams. form_submission and triggering_job_role are optional; when subject_type is set to form-submissions the form_submission relationship should be populated.

data
object
required

Response

Action created successfully.

JSON API response object

data
object
required

An action is a piece of work that needs doing, assigned to one or more users and/or teams. It has a lifecycle state (open / closed), a priority, an optional due date, and an optional polymorphic link back to whatever produced it (in v1, a form submission). Actions are produced both manually and by domain producers such as the data-capture workflow runner.

The subject is optional. When present, exactly the relationship matching subject_type is populated (v1: subject_type is form-submissions, so form_submission is the populated relationship). Manual actions can have no subject at all.

jsonapi
object
required
included
object[]

Related resources that can be included when an action is returned.

A user