Templates

Publish an exact template commit

Builds an exact Git commit and entry path, stores the immutable compiled template and its assets, records the input contract it validates against, and makes that publication current. A commit that compiles to the same build as an existing publication makes that publication current again instead of recording another.

post/v1/templates/{id}/publications

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/templates/{id}/publications
  • Auth: API key in header x-api-key

Path parameters

idstring required

Request body

projectIdstring required
commitShastring required
entryPathstring required
expectedWorkspaceRevisionstring required
ifCurrentPublicationIdstring

Response

Success

idstring required
organizationIdstring required
projectIdstring required
templateIdstring required
inputContractIdstring required
commitShastring required
treeShastring required
entryPathstring required
buildIdentitystring required
statusstring required
publishedAtstring required
publishedBystring nullable required
createdAtstring required

Changes

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