Change the branch or sync paths
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/repo \
--header 'Content-Type: application/json' \
--data '
{
"branch": "<string>",
"sync_paths": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({branch: '<string>', sync_paths: ['<string>']})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/repo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/repo"
payload = {
"branch": "<string>",
"sync_paths": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Projects
Change the branch or sync paths
Changes the branch or sync_paths and syncs. Files that no longer match leave the brain. Needs a project or workspace admin; refused to connected agents.
PATCH
/
admin
/
api
/
projects
/
{project_id}
/
repo
Change the branch or sync paths
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/repo \
--header 'Content-Type: application/json' \
--data '
{
"branch": "<string>",
"sync_paths": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({branch: '<string>', sync_paths: ['<string>']})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/repo', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/repo"
payload = {
"branch": "<string>",
"sync_paths": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}