> For the complete documentation index, see [llms.txt](https://intuitem.gitbook.io/ciso-assistant/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/folders.md). Agents can also search and read this documentation through its [MCP server](https://intuitem.gitbook.io/ciso-assistant/~gitbook/mcp).

# Folders

## GET /api/folders/

> Override the list method to inject optimized data into the serializer context.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PaginatedFolderReadList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/FolderRead"}}}},"FolderRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"path":{"type":"string","readOnly":true},"parent_folder":{"type":"string","readOnly":true},"filtering_labels":{"type":"array","items":{"type":"string"}},"default_role":{"type":"string","readOnly":true},"content_type":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"ref_id":{"type":"string","nullable":true,"title":"Reference id","maxLength":100},"builtin":{"type":"boolean","readOnly":true},"create_iam_groups":{"type":"boolean","description":"Automatically provision IAM groups for domain folders."}},"required":["builtin","content_type","created_at","default_role","filtering_labels","id","name","parent_folder","path","updated_at"]}}},"paths":{"/api/folders/":{"get":{"operationId":"folders_list","description":"Override the list method to inject optimized data into the serializer context.","parameters":[{"in":"query","name":"content_type","schema":{"type":"array","items":{"type":"string"}},"explode":true,"style":"form"},{"in":"query","name":"created_at__date","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__gt","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__gte","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__lt","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__date__lte","schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at__gt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__gte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__isnull","schema":{"type":"boolean"}},{"in":"query","name":"created_at__lt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"created_at__lte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"filtering_labels","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"explode":true,"style":"form"},{"in":"query","name":"genericcollection","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"description":"Multiple values may be separated by commas.","explode":false,"style":"form"},{"in":"query","name":"id","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"description":"Multiple values may be separated by commas.","explode":false,"style":"form"},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"in":"query","name":"name","schema":{"type":"string"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"in":"query","name":"owned","schema":{"type":"boolean"},"description":"owned"},{"in":"query","name":"owner","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"explode":true,"style":"form"},{"in":"query","name":"parent_folder","schema":{"type":"array","items":{"type":"string","format":"uuid"}},"explode":true,"style":"form"},{"in":"query","name":"ref_id","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}},{"in":"query","name":"updated_at__date","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__gt","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__gte","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__lt","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__date__lte","schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at__gt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__gte","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__isnull","schema":{"type":"boolean"}},{"in":"query","name":"updated_at__lt","schema":{"type":"string","format":"date-time"}},{"in":"query","name":"updated_at__lte","schema":{"type":"string","format":"date-time"}}],"tags":["folders"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedFolderReadList"}}},"description":""}}}}}}
```

## POST /api/folders/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"FolderWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"content_type":{"allOf":[{"$ref":"#/components/schemas/ContentTypeEnum"}],"readOnly":true},"ref_id":{"type":"string","nullable":true,"title":"Reference id","maxLength":100},"create_iam_groups":{"type":"boolean","description":"Automatically provision IAM groups for domain folders."},"parent_folder":{"type":"string","format":"uuid","nullable":true},"filtering_labels":{"type":"array","items":{"type":"string","format":"uuid","title":"Labels"},"title":"Labels"}},"required":["content_type","created_at","id","name","updated_at"]},"ContentTypeEnum":{"enum":["GL","DO","EN","PE"],"type":"string","description":"* `GL` - GLOBAL\n* `DO` - DOMAIN\n* `EN` - ENCLAVE\n* `PE` - PERSONAL"}}},"paths":{"/api/folders/":{"post":{"operationId":"folders_create","description":"API endpoint that allows folders to be viewed or edited.","tags":["folders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/FolderWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FolderWrite"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderWrite"}}},"description":""}}}}}}
```

## GET /api/folders/{id}/

> Return a single object with unauthorized related fields masked.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"FolderRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"path":{"type":"string","readOnly":true},"parent_folder":{"type":"string","readOnly":true},"filtering_labels":{"type":"array","items":{"type":"string"}},"default_role":{"type":"string","readOnly":true},"content_type":{"type":"string"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"ref_id":{"type":"string","nullable":true,"title":"Reference id","maxLength":100},"builtin":{"type":"boolean","readOnly":true},"create_iam_groups":{"type":"boolean","description":"Automatically provision IAM groups for domain folders."}},"required":["builtin","content_type","created_at","default_role","filtering_labels","id","name","parent_folder","path","updated_at"]}}},"paths":{"/api/folders/{id}/":{"get":{"operationId":"folders_retrieve","description":"Return a single object with unauthorized related fields masked.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderRead"}}},"description":""}}}}}}
```

## PUT /api/folders/{id}/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"FolderWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"content_type":{"allOf":[{"$ref":"#/components/schemas/ContentTypeEnum"}],"readOnly":true},"ref_id":{"type":"string","nullable":true,"title":"Reference id","maxLength":100},"create_iam_groups":{"type":"boolean","description":"Automatically provision IAM groups for domain folders."},"parent_folder":{"type":"string","format":"uuid","nullable":true},"filtering_labels":{"type":"array","items":{"type":"string","format":"uuid","title":"Labels"},"title":"Labels"}},"required":["content_type","created_at","id","name","updated_at"]},"ContentTypeEnum":{"enum":["GL","DO","EN","PE"],"type":"string","description":"* `GL` - GLOBAL\n* `DO` - DOMAIN\n* `EN` - ENCLAVE\n* `PE` - PERSONAL"}}},"paths":{"/api/folders/{id}/":{"put":{"operationId":"folders_update","description":"API endpoint that allows folders to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/FolderWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/FolderWrite"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderWrite"}}},"description":""}}}}}}
```

## DELETE /api/folders/{id}/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/{id}/":{"delete":{"operationId":"folders_destroy","description":"API endpoint that allows folders to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"responses":{"204":{"description":"No response body"}}}}}}
```

## PATCH /api/folders/{id}/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PatchedFolderWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"content_type":{"allOf":[{"$ref":"#/components/schemas/ContentTypeEnum"}],"readOnly":true},"ref_id":{"type":"string","nullable":true,"title":"Reference id","maxLength":100},"create_iam_groups":{"type":"boolean","description":"Automatically provision IAM groups for domain folders."},"parent_folder":{"type":"string","format":"uuid","nullable":true},"filtering_labels":{"type":"array","items":{"type":"string","format":"uuid","title":"Labels"},"title":"Labels"}}},"ContentTypeEnum":{"enum":["GL","DO","EN","PE"],"type":"string","description":"* `GL` - GLOBAL\n* `DO` - DOMAIN\n* `EN` - ENCLAVE\n* `PE` - PERSONAL"},"FolderWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string","nullable":true},"content_type":{"allOf":[{"$ref":"#/components/schemas/ContentTypeEnum"}],"readOnly":true},"ref_id":{"type":"string","nullable":true,"title":"Reference id","maxLength":100},"create_iam_groups":{"type":"boolean","description":"Automatically provision IAM groups for domain folders."},"parent_folder":{"type":"string","format":"uuid","nullable":true},"filtering_labels":{"type":"array","items":{"type":"string","format":"uuid","title":"Labels"},"title":"Labels"}},"required":["content_type","created_at","id","name","updated_at"]}}},"paths":{"/api/folders/{id}/":{"patch":{"operationId":"folders_partial_update","description":"API endpoint that allows folders to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedFolderWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedFolderWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedFolderWrite"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderWrite"}}},"description":""}}}}}}
```

## GET /api/folders/{id}/cascade-info/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/{id}/cascade-info/":{"get":{"operationId":"folders_cascade_info_retrieve","description":"API endpoint that allows folders to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/{id}/export/

> Export the domain as a zip file containing a JSON dump of all objects and their relationships

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/{id}/export/":{"get":{"operationId":"folders_export_retrieve","description":"Export the domain as a zip file containing a JSON dump of all objects and their relationships","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/{id}/neighborhood/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/{id}/neighborhood/":{"get":{"operationId":"folders_neighborhood_retrieve","description":"API endpoint that allows folders to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/{id}/object/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/{id}/object/":{"get":{"operationId":"folders_object_retrieve","description":"API endpoint that allows folders to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/{id}/quality\_check/

> Returns the quality check of assessments for a specific folder.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/{id}/quality_check/":{"get":{"operationId":"folders_quality_check_retrieve_2","description":"Returns the quality check of assessments for a specific folder.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Folder.","required":true}],"tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/{id}/users/

>

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}},"schemas":{"PaginatedUserRolesOnFolderList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/UserRolesOnFolder"}}}},"UserRolesOnFolder":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"email":{"type":"string","maxLength":100},"first_name":{"type":"string","maxLength":150},"last_name":{"type":"string","maxLength":150},"is_active":{"type":"boolean","title":"Active","description":"Designates whether this user should be treated as active. Unselect this instead of deleting accounts."},"roles":{"type":"string","readOnly":true}},"required":["email","id","roles"]}}},"paths":{"/api/folders/{id}/users/":{"get":{"operationId":"folders_users_list","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"required":true},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","description":"A search term.","schema":{"type":"string"}}],"tags":["folders"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedUserRolesOnFolderList"}}},"description":""}}}}}}
```

## GET /api/folders/autocomplete/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/autocomplete/":{"get":{"operationId":"folders_autocomplete_retrieve","description":"API endpoint that allows folders to be viewed or edited.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/folders/batch-action/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/batch-action/":{"post":{"operationId":"folders_batch_action_create","description":"API endpoint that allows folders to be viewed or edited.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/export\_csv/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/export_csv/":{"get":{"operationId":"folders_export_csv_retrieve","description":"API endpoint that allows folders to be viewed or edited.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/export\_xlsx/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/export_xlsx/":{"get":{"operationId":"folders_export_xlsx_retrieve","description":"API endpoint that allows folders to be viewed or edited.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/get\_accessible\_objects/

> Return the list of folders, perimeters, frameworks and risk matrices\
> the current user can access, based on their role assignments.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/get_accessible_objects/":{"get":{"operationId":"folders_get_accessible_objects_retrieve","description":"Return the list of folders, perimeters, frameworks and risk matrices\nthe current user can access, based on their role assignments.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/ids/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/ids/":{"get":{"operationId":"folders_ids_retrieve","description":"API endpoint that allows folders to be viewed or edited.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/folders/import/

> Handle file upload and initiate import process.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/import/":{"post":{"operationId":"folders_import_create","description":"Handle file upload and initiate import process.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/folders/import-dummy/

> Load the demo dataset (\`\`core.demo\`\`) into its own domain.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/import-dummy/":{"post":{"operationId":"folders_import_dummy_create","description":"Load the demo dataset (``core.demo``) into its own domain.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/my\_assignments/

> API endpoint that allows folders to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/my_assignments/":{"get":{"operationId":"folders_my_assignments_retrieve","description":"API endpoint that allows folders to be viewed or edited.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/org\_tree/

> Return the tree of domains and perimeters.\
> \
> Optional query param \`write\_perm\` (e.g. write\_perm=add\_asset).When provided, each node in the response carries a \`\`writable\`\` boolean\
> that is \`\`True\`\` only for folders where the requesting user holds that permission.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/org_tree/":{"get":{"operationId":"folders_org_tree_retrieve","description":"Return the tree of domains and perimeters.\n\nOptional query param `write_perm` (e.g. write_perm=add_asset).When provided, each node in the response carries a ``writable`` boolean\nthat is ``True`` only for folders where the requesting user holds that permission.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/folders/quality\_check/

> Returns the quality check of assessments grouped by folder.\
> \
> Folders without a single finding are left out: they render as empty\
> cards and, on large instances, make up most of the response.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/quality_check/":{"get":{"operationId":"folders_quality_check_retrieve","description":"Returns the quality check of assessments grouped by folder.\n\nFolders without a single finding are left out: they render as empty\ncards and, on large instances, make up most of the response.","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/folders/reorganize/

> Apply a set of folder moves and deletions as one transaction.\
> \
> Payload: {"moves": \[{"folder", "parent\_folder", "from\_parent"}],\
> &#x20;         "deletes": \[{"folder"}]}

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"folders"}],"security":[{"PersonalAccessToken":[]}],"components":{"securitySchemes":{"PersonalAccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token, created from your user profile. Send it as `Authorization: Token <PAT>`."}}},"paths":{"/api/folders/reorganize/":{"post":{"operationId":"folders_reorganize_create","description":"Apply a set of folder moves and deletions as one transaction.\n\nPayload: {\"moves\": [{\"folder\", \"parent_folder\", \"from_parent\"}],\n          \"deletes\": [{\"folder\"}]}","tags":["folders"],"responses":{"200":{"description":"No response body"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://intuitem.gitbook.io/ciso-assistant/api-documentation/api-reference/folders.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
