Promote Template
POST
/api/internal/templates/promote
const url = 'https://example.com/api/internal/templates/promote';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"slug":"example","template_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/internal/templates/promote \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "slug": "example", "template_id": "example" }'Open a PR that copies templates/<slug>/ from this pod’s environment
branch to the next env’s branch. Mirrors the automation promote ladder:
dev pod → develop → release (PR ← release-templates/
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
TemplatePromoteResponse
object
success
required
Success
boolean
slug
required
Slug
string
source_environment
required
Source Environment
string
target_environment
required
Target Environment
string
source_branch
required
Source Branch
string
target_branch
required
Target Branch
string
changed
Changed
boolean
pull_request
Pull Request
object
key
additional properties
any
merge
Merge
object
key
additional properties
any
auto_merge_requested
Auto Merge Requested
boolean
Example
{ "changed": false, "auto_merge_requested": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}