Skip to content

sessions module route (requires sessions:work:write)

DELETE
/v1/m/sessions/work-items/{id}/dependencies/{dep_id}
curl --request DELETE \
--url 'https://example.com/v1/m/sessions/work-items/example/dependencies/example?mode=validate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "command": "example" }'

Removes one dependency edge from a work item as a validate, plan or apply command.

id
required
string

Path parameter id.

dep_id
required
string

Path parameter dep_id.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Idempotency-Key
string

UUID required when mode=apply; reuse it only for an exact retry.

If-Match
string

Strong resource ETag required when mode=apply mutates an existing resource.

If-Plan-Hash
string

Optional SHA-256 plan hash that apply must reproduce.

mode
required
string
Allowed values: validate plan apply

Mandatory command phase. validate and plan are observational; apply revalidates and mutates.

Media type application/json

WorkCommand document shared by validate, plan and apply. Route target fields are server-bound.

object
command
string
key
additional properties
any
Example generated
{
"command": "example"
}

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

ETag or plan precondition failed

Media type application/json
object
Example generated
{}

Domain invariant not satisfied

Media type application/json
object
Example generated
{}

Work is blocked

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}

Required evidence, policy, clock or store is unavailable

Media type application/json
object
Example generated
{}