Skip to main content
POST
Create a dependency

Authorizations

Authorization
string
header
required

A Phrase Platform JWT issued for Orchestrator, sent as Authorization: Bearer <JWT>. See Authentication and access for how to obtain one.

Path Parameters

workflow_id
integer
required

ID of the workflow the revision belongs to.

Example:

123

revision_id
integer
required

ID of the revision the dependency belongs to.

Example:

789

Body

application/json

The dependency to create

The dependency to create between two tasks of the revision.

source_task_id
string<uuid>
required

ID of the task the dependency starts from.

Example:

"11111111-2222-4333-8444-555555555555"

target_task_id
string<uuid>
required

ID of the task the dependency points to.

Example:

"66666666-7777-4888-8999-aaaaaaaaaaaa"

Response

Created

A directed dependency in a revision's execution graph: source_task_id runs before target_task_id.

id
string<uuid>
required

Unique identifier of the dependency.

Example:

"a1b2c3d4-e5f6-4789-a0b1-c2d3e4f5a6b7"

source_task_id
string<uuid>
required

ID of the task the dependency starts from.

Example:

"11111111-2222-4333-8444-555555555555"

target_task_id
string<uuid>
required

ID of the task the dependency points to.

Example:

"66666666-7777-4888-8999-aaaaaaaaaaaa"