Update pipeline steps. This is the auto-save path.
import requests
url = "https://www.datalab.to/api/v1/pipelines/{pipeline_id}"
payload = { "steps": [
{
"type": "convert",
"settings": {},
"custom_processor_id": "<string>",
"eval_rubric_id": 123,
"pending_check_url": "<string>",
"pending_name": "<string>"
}
] }
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"
}Ordered list of pipeline steps
1Show child attributes
Was this page helpful?
import requests
url = "https://www.datalab.to/api/v1/pipelines/{pipeline_id}"
payload = { "steps": [
{
"type": "convert",
"settings": {},
"custom_processor_id": "<string>",
"eval_rubric_id": 123,
"pending_check_url": "<string>",
"pending_name": "<string>"
}
] }
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"
}