Skip to main content
POST
Publish a widget recipe from one of the member's sites

Authorizations

Authorization
string
header
required

A member credential in the Authorization: Bearer header: a member session JWT, a portal JWT whose login is linked to a membership in that company, an opaque member token, or a verified One Auth identity access token. The credential alone identifies the member and company. Member session JWTs, and portal JWTs the server minted read-only, are refused with 403 on every write.

Body

application/json

A recipe version to publish.

siteId
string<uuid>
required

A site the member owns, with a current bundle.

files
object
required

By path in the recipe folder: recipe.json, skeleton.html, reference/plain.js and the optional reference/plain.css, each { content }, and 1 or 2 screenshots/<n>.png|jpg|jpeg|webp, each { contentBase64 }.

visibility
object
required

Who a recipe is shown to. Official is never a visibility; it comes from a company admin.

widgetId
string<uuid>

The member's own published recipe, to publish its next version. Left out, the publish makes a new recipe.

Response

The recipe and the number of its new version.

A published recipe version.

status
integer
required

HTTP status code (mirrors the response status line).

data
object
required

The recipe and its new version.

meta
object

Envelope metadata present on every response.