Templates

Publish a document as a template

Changed on

Copies one of your media documents into a new template and submits it for moderation. The template is a frozen copy, so later edits to the document do not change it. Requires a key bound to a user (a personal API key, or on_behalf_of_user_id).

post/templates

Request

  • Base URL: https://api.varg.ai/v2
  • URL: https://api.varg.ai/v2/templates
  • Auth: HTTP bearer

Request body

document_idstring uuid required

A media document you own. documentId is also accepted.

descriptionstring required
tagsstring[]

Trimmed and lower-cased; empty tags are dropped and only the first five are kept. Each tag may be at most 30 characters.

Response

Template created and awaiting moderation

idstring uuid
statusstring

New templates start in moderation, typically pending

sourceDocumentIdstring uuid
createdAtstring date-time

Example response

{
  "status": "pending"
}

Changes