Update a record view
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid}/record-views/{id} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"columns": [
"<string>"
],
"sort_key": "<string>",
"is_default": true
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
columns: ['<string>'],
sort_key: '<string>',
is_default: true
})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/record-views/{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/projects/{pid}/record-views/{id}"
payload = {
"name": "<string>",
"columns": ["<string>"],
"sort_key": "<string>",
"is_default": True
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"view": {
"id": "<string>",
"webhook_id": "<string>",
"name": "<string>",
"columns": [
{
"key": "<string>",
"label": "<string>"
}
],
"sortKey": "<string>",
"sortDir": "asc",
"isDefault": 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>"
}Record views
Update a record view
Top-level alias: PATCH /admin/api/record-views/. Write role required.
PATCH
/
admin
/
api
/
projects
/
{pid}
/
record-views
/
{id}
Update a record view
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid}/record-views/{id} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"columns": [
"<string>"
],
"sort_key": "<string>",
"is_default": true
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
columns: ['<string>'],
sort_key: '<string>',
is_default: true
})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/record-views/{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/projects/{pid}/record-views/{id}"
payload = {
"name": "<string>",
"columns": ["<string>"],
"sort_key": "<string>",
"is_default": True
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"view": {
"id": "<string>",
"webhook_id": "<string>",
"name": "<string>",
"columns": [
{
"key": "<string>",
"label": "<string>"
}
],
"sortKey": "<string>",
"sortDir": "asc",
"isDefault": 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.
Record view id.
Body
application/json
Supplied fields are merged over the stored view and the whole result is re-validated, so a partial body is fine but a supplied field must be complete and valid. webhook_id cannot be changed.
Response
Updated. As with create, the echoed view uses the camelCase names sortKey, sortDir and isDefault.
Show child attributes
Show child attributes