Skip to Content
Create a directive
post

Creates a new directive that defines which Robots workflows should run against Mux assets, and under what resource conditions.

Request body params
name
string

Human-readable directive name.

subject.type
string
Possible values: "video.asset""video.live_stream"

The entity type each run targets. V1 accepts "video.asset" only; "video.live_stream" is reserved and rejected at save time.

Resources the engine ensures on the asset before dependent workflows run. May be omitted for workflows-only directives.

The Robots workflows to dispatch on each run.

post
201
https://api.mux.com/robots/v0/directives