Update a Brain ingestion pipeline
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id} \
--header 'Content-Type: application/json' \
--data '
{
"revision": 2,
"name": "<string>",
"description": "<string>",
"enabled": true,
"sources": [
{
"type": "project_dataset",
"project_id": "<string>",
"dataset": "<string>"
}
],
"steps": [
{
"type": "filter",
"path": "<string>",
"value": "<string>"
}
],
"target": {
"type": "table",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
revision: 2,
name: '<string>',
description: '<string>',
enabled: true,
sources: [{type: 'project_dataset', project_id: '<string>', dataset: '<string>'}],
steps: [{type: 'filter', path: '<string>', value: '<string>'}],
target: {type: 'table', table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}"
payload = {
"revision": 2,
"name": "<string>",
"description": "<string>",
"enabled": True,
"sources": [
{
"type": "project_dataset",
"project_id": "<string>",
"dataset": "<string>"
}
],
"steps": [
{
"type": "filter",
"path": "<string>",
"value": "<string>"
}
],
"target": {
"type": "table",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Data workspace
Update a Brain ingestion pipeline
Requires write access and the current revision. Name, description and enabled may change alone; sources, steps and target are replaced together. A stale revision returns 409.
PATCH
/
admin
/
api
/
data-workspace
/
pipelines
/
{pipeline_id}
Update a Brain ingestion pipeline
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id} \
--header 'Content-Type: application/json' \
--data '
{
"revision": 2,
"name": "<string>",
"description": "<string>",
"enabled": true,
"sources": [
{
"type": "project_dataset",
"project_id": "<string>",
"dataset": "<string>"
}
],
"steps": [
{
"type": "filter",
"path": "<string>",
"value": "<string>"
}
],
"target": {
"type": "table",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
revision: 2,
name: '<string>',
description: '<string>',
enabled: true,
sources: [{type: 'project_dataset', project_id: '<string>', dataset: '<string>'}],
steps: [{type: 'filter', path: '<string>', value: '<string>'}],
target: {type: 'table', table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'}
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/pipelines/{pipeline_id}"
payload = {
"revision": 2,
"name": "<string>",
"description": "<string>",
"enabled": True,
"sources": [
{
"type": "project_dataset",
"project_id": "<string>",
"dataset": "<string>"
}
],
"steps": [
{
"type": "filter",
"path": "<string>",
"value": "<string>"
}
],
"target": {
"type": "table",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Body
application/json
Response
Successful operation
The response is of type object.