Template gallery

Add a gallery design to the organization

Copies a gallery design into your organization as a template of your own and, unless publish is false, publishes it in the same call so the render API can use it at once. Give it an externalId to render it by a slug of your choosing; the default is the new template's UUID. The copy is yours from then on: edits, versions and the published-template quota are the organization's, and the gallery is never rendered from directly.

post/v2/organizations/{organizationId}/templates/from-gallery

Request

  • Base URL: https://api.pdfs.build
  • URL: https://api.pdfs.build/v2/organizations/{organizationId}/templates/from-gallery
  • Auth: HTTP bearer

Request body

galleryIdstring required
externalIdstring

The slug to render the copy by. 1-128 URL-safe characters; defaults to the new template's UUID.

namestring

A name for the copy; defaults to the design's.

publishboolean

false leaves the copy as a draft for the editor instead of publishing it.

Example request

{
  "galleryId": "odoo-invoice-stub-band"
}

Response

The new template. publishedVersion is the version the API serves, or null when publish was false.

idstring uuid required
externalIdstring required
galleryIdstring required
namestring required
status'draft' | 'published' required
publishedVersioninteger nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.