Create a new version snapshot of the pipeline’s current steps.
import requests
url = "https://www.datalab.to/api/v1/pipelines/{pipeline_id}/versions"
payload = { "description": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"version": 123,
"steps": [
"<unknown>"
],
"description": "<string>",
"created": "2023-11-07T05:31:56Z"
}Optional description for this version snapshot
500Was this page helpful?
import requests
url = "https://www.datalab.to/api/v1/pipelines/{pipeline_id}/versions"
payload = { "description": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"version": 123,
"steps": [
"<unknown>"
],
"description": "<string>",
"created": "2023-11-07T05:31:56Z"
}