API Reference
Promote To Template
Promote a pipeline to a reusable template.
Authorizations
X-API-KeystringheaderrequiredYour API key for authentication
Body Parameters
pipeline_idstringbodyrequiredPipeline ID to promote
Cookies
wos-sessionstringcookieSession cookie
access_tokenstringcookieAccess token cookie
datalab_active_teamstringcookieActive 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"}