Rename a project or set its IP allowlist
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"ip_allowlist": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', ip_allowlist: ['<string>']})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}', 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/{pid}"
payload = {
"name": "<string>",
"ip_allowlist": ["<string>"]
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Projects
Rename a project or set its IP allowlist
Owner/admin only. Slug and type are immutable.
PATCH
/
admin
/
api
/
projects
/
{pid}
Rename a project or set its IP allowlist
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"ip_allowlist": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', ip_allowlist: ['<string>']})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}', 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/{pid}"
payload = {
"name": "<string>",
"ip_allowlist": ["<string>"]
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Path Parameters
Project id (UUID) belonging to the caller workspace.
Body
application/json
Applied only when it is a non-empty string of at most 80 characters; otherwise silently skipped.
Required string length:
1 - 80Stored as JSON verbatim when an array, or cleared when null. This handler does NOT run the CIDR validator, unlike PATCH /admin/api/ip-allowlist.
Response
Updated.