Remove a project's storage rules
curl --request DELETE \
--url https://app.hookie.ai/admin/api/projects/{project_id}/storage-rulesconst options = {method: 'DELETE'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/storage-rules', 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}/storage-rules"
response = requests.delete(url)
print(response.text){
"project_id": "<string>",
"applies_to": "agents",
"rules": {
"version": 1,
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"effective": {
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"revision": 1,
"updated_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}Projects
Remove a project's storage rules
Remove the rules (#689): the system limits apply again. Needs the manage role in the project, and a person. Answers the empty rules (revision 0).
DELETE
/
admin
/
api
/
projects
/
{project_id}
/
storage-rules
Remove a project's storage rules
curl --request DELETE \
--url https://app.hookie.ai/admin/api/projects/{project_id}/storage-rulesconst options = {method: 'DELETE'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/storage-rules', 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}/storage-rules"
response = requests.delete(url)
print(response.text){
"project_id": "<string>",
"applies_to": "agents",
"rules": {
"version": 1,
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"effective": {
"memory": {
"kinds": [
"memory"
],
"min_tags": 10,
"require_thread": true,
"title_min": 100,
"title_max": 100,
"max_content_chars": 16384
},
"document": {
"kinds": [
"prd"
],
"content_types": [
"text/plain"
],
"max_bytes": 5242880,
"require_source_ref": true
}
},
"revision": 1,
"updated_by": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}Response
The project's storage rules, now none