Publish an exact template commit
Publish an exact template commit. View request and response details for this Samva email API endpoint.
Builds an exact Git commit and entry path, stores the immutable executable and its assets, records the input contract it validates against, and makes that publication current.
Authorization
apiKey In: header
Path Parameters
^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
^tproj_[0-9a-hjkmnp-tv-z]{16,24}$^[a-f0-9]{40}$^(?!\/)(?!.*\\)(?!.*(?:^|\/)\.{1,2}(?:\/|$))(?!.*(?:^|\/)\.git(?:\/|$))emails\/.+\.tsx$length <= 10241 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/templates/string/publications" \ -H "Content-Type: application/json" \ -d '{ "projectId": "string", "commitSha": "string", "entryPath": "string", "expectedWorkspaceRevision": "string" }'{ "id": "string", "organizationId": "string", "projectId": "string", "templateId": "string", "inputContractId": "string", "commitSha": "string", "treeSha": "string", "entryPath": "string", "buildIdentity": "string", "manifest": { "templateKey": "string", "executable": { "codeDigest": "string", "bytes": 0 }, "input": { "schemaDigest": "string", "contractDigest": "string" }, "environment": { "locale": "string", "timeZone": "UTC", "now": 0, "randomSeed": 0, "compiler": "string", "runtime": "string", "checker": "string", "lockKind": "bun", "lockDigest": "string", "digest": "string" }, "assets": { "base": "string", "entries": [ { "path": "string", "fileName": "string", "digest": "string", "bytes": 0, "contentType": "string", "url": "string" } ] }, "source": { "commitSha": "string", "treeSha": "string", "entryPath": "string", "treeDigest": "string" } }, "executable": { "key": "string", "digest": "string" }, "assets": [ { "path": "string", "fileName": "string", "digest": "string", "bytes": 0, "contentType": "string", "url": "string" } ], "warnings": [ { "code": "string", "severity": "error", "message": "string", "origins": [ { "fileName": "string", "lineNumber": 1, "columnNumber": 1 } ], "clients": [ "string" ], "notes": "string", "provenance": "string", "fixtures": [ "string" ], "occurrences": [ [ { "fileName": "string", "lineNumber": 1, "columnNumber": 1 } ] ], "compatibility": { "assessment": "risk", "title": "string" } } ], "incompatibilities": [ { "code": "string", "severity": "error", "message": "string", "origins": [ { "fileName": "string", "lineNumber": 1, "columnNumber": 1 } ], "clients": [ "string" ], "notes": "string", "provenance": "string", "fixtures": [ "string" ], "occurrences": [ [ { "fileName": "string", "lineNumber": 1, "columnNumber": 1 } ] ], "compatibility": { "assessment": "risk", "title": "string" } } ], "status": "string", "publishedAt": "string", "publishedBy": "string", "createdAt": "string"}Related
Patch template project files
Applies revision-checked file patches to the shared project workspace overlay. Use this endpoint to patch template project files through the Samva email API.
Reconcile a template project workspace
Fast-forwards or rebases the workspace onto the current Artifact branch head, retaining file conflicts for explicit resolution.