Templates

Export the recipe and settings of a template version (request form, ready to build again)

recipe: v1 {base, dockerfile, network} or the recipe v2 document (base as <slug>@<version>, languages as {id, version}, files without size, settings as stored); building it again from the same base with the same API release, while its uploads exist, gives the same recipe_sha256. null for versions saved from a workspace or published by the platform. settings: the version’s TemplateSettings. Same visibility as the version (unpublished only for owners/admins of the owning organization).

get/v1/templates/{slug}/versions/{version}/recipe

Request

  • Base URL: https://api.shardflux.dev
  • URL: https://api.shardflux.dev/v1/templates/{slug}/versions/{version}/recipe
  • Auth: HTTP bearer

Path parameters

slugstring required
versioninteger required

Query parameters

owner'platform' | 'organization'

Pick the platform template even when an organization template shadows its slug.

Response

The recipe and settings a version was built from (feeds "Edit template" and shard templates export).

versioninteger required
source_kind'recipe' | 'workspace' | 'git' nullable required

Changes

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