Skip to main content
POST
/
api
/
v1
/
pipeline_templates
Promote To Template
import requests

url = "https://www.datalab.to/api/v1/pipeline_templates"

payload = {
    "pipeline_id": "<string>",
    "slug": "<string>",
    "template_description": "<string>",
    "template_category": "<string>",
    "sort_order": "0"
}
headers = {
    "X-API-Key": "<api-key>",
    "Content-Type": "application/x-www-form-urlencoded"
}

response = requests.post(url, data=payload, headers=headers)

print(response.text)
{
  "pipeline_id": "<string>",
  "slug": "<string>",
  "name": "<string>",
  "template_description": "<string>",
  "template_category": "<string>",
  "request_description": "<string>",
  "example_files": [
    {
      "filename": "<string>",
      "file_size": 123,
      "content_type": "application/pdf"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Cookies

wos-session
string
access_token
string
datalab_active_team
string

Body

application/x-www-form-urlencoded
pipeline_id
string
required

Pipeline ID to copy as a template

slug
string
required

URL-friendly slug (e.g. 'invoice-extraction')

template_description
string | null

Public-facing description

template_category
string | null

Category (e.g. Finance, Healthcare)

sort_order
integer
default:0

Display ordering

Response

Successful Response

Detailed template info.

pipeline_id
string
required
slug
string
required
name
string | null
template_description
string | null
template_category
string | null
request_description
string | null
example_files
TemplateExampleFile · object[]