Create an overlay config
POST/program/api/v2/projects/:projectID/overlay-configs
Creates a project-scoped, reusable overlay config.
entries is ordered, bottom-first — index 0 is the bottom
layer, the last element renders on top.
An entry is either an HTML overlay or a reference to a static
asset in the same project, and one config may hold both kinds at
once. The coupling between kind and its payload is enforced
server-side at write time, not at stream start, because a
config resolving across three levels gives a malformed entry too
many places to hide:
kind: html2imgMUST carryurl, and it must be an absolute public HTTP(S) URL with no userinfo — the same validation a BYO asset'spublicUrlgets.kind: assetMUST carryassetId, and the asset MUST exist in the same project as the config.
properties is opaque to program and round-tripped verbatim.
For the html2img plugin the shape is {"args": [...string]}.
name is unique within the project.
Request
Responses
- 201
- 400
- 403
- 409
- 500
Overlay config created
Validation failure — an html2img entry without a valid absolute public URL, an asset entry without an assetId, or an assetId naming an asset outside this project.
Forbidden — no project access
A config with this name already exists in the project
Internal Server Error