Custom Pipelines (Deprecated)
Restore Custom Pipeline
Restore an archived custom processor. Admin-only.
POST
/
api
/
v1
/
custom_pipelines
/
{processor_id}
/
restore
Restore Custom Pipeline
import requests
url = "https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore"
payload = { "team_id": "123" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)curl --request POST \
--url https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: <api-key>' \
--data team_id=123const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({team_id: '123'})
};
fetch('https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore"
payload := strings.NewReader("team_id=123")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I
Restore Custom Pipeline
import requests
url = "https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore"
payload = { "team_id": "123" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)curl --request POST \
--url https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-API-Key: <api-key>' \
--data team_id=123const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({team_id: '123'})
};
fetch('https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.datalab.to/api/v1/custom_pipelines/{processor_id}/restore"
payload := strings.NewReader("team_id=123")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}