Name and promote a pipeline to saved status.
import requests
url = "https://www.datalab.to/api/v1/pipelines/{pipeline_id}/save"
payload = { "name": "" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"pipeline_id": "<string>",
"name": "<string>",
"steps": [
"<unknown>"
],
"is_saved": true,
"archived": true,
"active_version": 123,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}Display name for the saved pipeline
120Was this page helpful?
import requests
url = "https://www.datalab.to/api/v1/pipelines/{pipeline_id}/save"
payload = { "name": "" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"pipeline_id": "<string>",
"name": "<string>",
"steps": [
"<unknown>"
],
"is_saved": true,
"archived": true,
"active_version": 123,
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}