docs
UAEN
API Reference

Promote To Template

Promote a pipeline to a reusable template.

POST/api/v1/templates/promote

Authorizations

X-API-Keystringheaderrequired
Your API key for authentication

Body Parameters

pipeline_idstringbodyrequired
Pipeline ID to promote

Cookies

wos-sessionstringcookie
Session cookie
access_tokenstringcookie
Access token cookie
datalab_active_teamstringcookie
Active team cookie

Response

Successful Response
Promote To Template
import requests

url = "https://www.datalab.to/api/v1/templates/promote"
headers = {"X-API-Key": "<api-key>"}
payload = {"pipeline_id": "pipe_abc", "name": "Invoice Template"}

response = requests.post(url, json=payload, headers=headers)
print(response.text)
200Success
{"id": "tpl_abc", "name": "Invoice Template"}