Base URL
https://10.11.30.40:44445/api/v1 instead; nothing else about a call changes.
There is one version, v1, and it is in the path. The published document is served at /openapi.json on any machine running RenderFlow, needs no credential, and is the same bytes the SDKs and the CLI are generated from:
Lists
Every list answers with the same envelope:total is how many rows match your filter, ignoring the window, so it is what a pager needs. limit defaults to 50 and caps at 500; asking for more is a 422 rather than a silently smaller page. offset defaults to 0.
Small collections answer with a bare array instead, because a farm holds a handful of them and paging would be ceremony: pools, user groups, licenses and their presets, the schedule, webhooks and their recent deliveries, and an error summary.
Sorting
- means descending. The fields allowed are per endpoint and listed on the parameter, because sorting on an unindexed field is a slow query no caller intended.
Filtering
Filters are named query parameters, never a raw database filter in a body. Each endpoint documents its own:GET /jobs, GET /nodes and GET /users take name, which matches the name exactly, case included. search is the loose match: a substring, ignoring case, of the name, and also of a machine’s alias or a user’s account and email.
name filter on jobs can answer more than one row.
Types on the wire
When a call fails
error is one sentence, it names the first field at fault, and it counts the rest. It is written to be shown to a person as it is, because a DCC submitter does exactly that. issues carries every problem, so a form can mark all of its fields in one round trip.
One case answers without a field name:
POST /jobs rejecting a body that matched none of its shapes. The request body there is a union of the step tree and every job type’s recipe, so when nothing matches there is no single field to blame. Check type first, then the fields that type requires.
There is no rate limiting. A farm is on your own network and the service is not metered.
Submitting a job
POST /jobs takes either shape. A recipe is the short way in:
type, file and host are required on a render recipe. A script or export recipe takes no host, a Shell recipe can leave it out, and a plugin recipe names the plugin’s id instead of a file. The Submit a job reference has an example body for each of the 40 recipe types. frame is a single frame, a range, a range with a step (1-240:4) or a list (1,7,22). resolution is a WIDTHxHEIGHT string. priority runs 0 to 100, and a job you do not set one on is created at 50.
Every recipe also takes the fields that place and prepare the job. pool_id sends it to one pool, which must be one your group may Submit to: another answers 409 with Pool outside what this role may submit to, and a job with no pool_id goes to the group’s first Submit-to pool. Moving a job with PATCH /jobs/{id}/pool follows the same rule. nodes limits it to the machines you list, and master names the machine that runs a distributed render’s dispatcher, which must be one of nodes when you give both. dependencies lists the ids of jobs that must complete before this one starts. env sets environment variables for every application the job starts, and $NAME in a value reads what the application would have had. licenses names the render licenses the step takes a seat of, for what the scene cannot declare, such as a plugin inside it. metadata attaches labelled values the job carries, such as the artist or the shot, each a label, a value and "type": "string".
wait decides what you get back. Without it the call answers 202 with a job that is still being built, which is right for a submitter that does not want to hold an artist’s application open. With ?wait=true it answers 201 and the job in the body is ready to start.
A submitted job is pending and will be picked up. Pass "status": "suspended" to have it wait until an operator starts it.
For a job that does several things in order, send name and your own steps array instead of a recipe. Both shapes are the one request body, so it is the same endpoint either way.
Acting on many rows
Every action that makes sense in bulk takes a list of ids, and answers with what actually happened rather than a bare success:Which machines can run a step
A step that is held back carries await object saying why. reason is license when it is waiting for a seat of a counted render license, with that license’s name on license, or requirements when no machine in its scope meets what the step requires. title is the sentence the job screens show, and at is when the wait began. A step that is not waiting has no wait, or null.
To see which machines could take the step, and why the rest cannot, ask for its candidates:
eligible can render the step, and its pool and its current status are never a reason against it. ineligible needs a different setup, such as software the step requires. excluded already failed this step, with a fatal error or with its tries spent. counts totals the three, groups collects the machines that cannot take the step by reason, reqs counts for each requirement how many machines in scope meet it, licenses lists the counted render licenses the step consumes with the seats in use, and wait repeats the step’s own. data is a page of machines, each with its verdict and its reasons.
verdict takes a comma-separated list, and search matches the machine name. req_id turns the page into one requirement’s table, where each row carries met and, when the machine misses it, have, the closest thing it has. Add met=false to see only the machines that miss it.
Status vocabularies
A job, a step and a task all use the same set:
Resetting a
completed job puts it back to suspended and it can run again, in place, keeping its id. That matters if you are waiting on one: see waiting for a job.
Machines have their own:
And a type, which never changes after setup:
server, node or workstation.