Other

Approves a template in its current review stage.

Available only to Enterprise-plan workspaces and first-party clients.

post/approval-flows/{flow}/items/{item}/approve

Request

  • Base URL
    https://api.orshot.com/v1
  • URL
    https://api.orshot.com/v1/approval-flows/{flow}/items/{item}/approve
  • Auth
    HTTP bearer

Path parameters

flowstring required

The approval flow's id or slug. A number is an id, anything else a slug.

iteminteger required

The approval item's id (one template in one approval flow).

Request body

reviewedVersionstring required

The template's currentVersion the reviewer looked at. The decision is refused with stale_review if the design changed since.

conditionsobject

What the approval is conditional on, e.g. { fields: { headline: { maxLength: 40 } } }. A field name is at most 200 characters, and the whole object at most 32000 characters as JSON.

commentstring

Optional note. Up to 5000 characters.

Response

Successful response

object required

Changes