> 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/managed-documents.md). Agents can also search and read this documentation through its [MCP server](https://intuitem.gitbook.io/ciso-assistant/~gitbook/mcp).

# Managed documents

## GET /api/managed-documents/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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":{"PaginatedManagedDocumentReadList":{"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/ManagedDocumentRead"}}}},"ManagedDocumentRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"folder":{"type":"string","readOnly":true},"container":{"type":"string","readOnly":true},"current_revision":{"type":"string","readOnly":true},"revision_count":{"type":"string","readOnly":true},"latest_draft":{"type":"string","readOnly":true},"display_name":{"type":"string","readOnly":true},"document_type":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"locale":{"type":"string","maxLength":100},"default_locale":{"type":"boolean"},"name":{"type":"string","maxLength":200},"description":{"type":"string"},"template_used":{"type":"string","nullable":true,"maxLength":200}},"required":["container","created_at","current_revision","display_name","document_type","folder","id","latest_draft","revision_count","updated_at"]}}},"paths":{"/api/managed-documents/":{"get":{"operationId":"managed_documents_list","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"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":["managed-documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedManagedDocumentReadList"}}},"description":""}}}}}}
```

## POST /api/managed-documents/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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":{"ManagedDocumentWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"policy":{"type":"string","format":"uuid","writeOnly":true,"nullable":true},"document_type":{"allOf":[{"$ref":"#/components/schemas/DocumentTypeEnum"}],"writeOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"locale":{"type":"string","maxLength":100},"default_locale":{"type":"boolean","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string"},"template_used":{"type":"string","nullable":true,"maxLength":200},"folder":{"type":"string","format":"uuid"},"container":{"type":"string","format":"uuid","nullable":true},"current_revision":{"type":"string","format":"uuid","readOnly":true,"nullable":true}},"required":["created_at","current_revision","default_locale","id","updated_at"]},"DocumentTypeEnum":{"enum":["policy","procedure","charter","record","meeting_minutes","other"],"type":"string","description":"* `policy` - Policy\n* `procedure` - Procedure\n* `charter` - Charter\n* `record` - Record\n* `meeting_minutes` - Meeting minutes\n* `other` - Other"}}},"paths":{"/api/managed-documents/":{"post":{"operationId":"managed_documents_create","description":"API endpoint that allows managed documents to be viewed or edited.","tags":["managed-documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}}},"description":""}}}}}}
```

## GET /api/managed-documents/{id}/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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":{"ManagedDocumentRead":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"folder":{"type":"string","readOnly":true},"container":{"type":"string","readOnly":true},"current_revision":{"type":"string","readOnly":true},"revision_count":{"type":"string","readOnly":true},"latest_draft":{"type":"string","readOnly":true},"display_name":{"type":"string","readOnly":true},"document_type":{"type":"string","readOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"locale":{"type":"string","maxLength":100},"default_locale":{"type":"boolean"},"name":{"type":"string","maxLength":200},"description":{"type":"string"},"template_used":{"type":"string","nullable":true,"maxLength":200}},"required":["container","created_at","current_revision","display_name","document_type","folder","id","latest_draft","revision_count","updated_at"]}}},"paths":{"/api/managed-documents/{id}/":{"get":{"operationId":"managed_documents_retrieve","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["managed-documents"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedDocumentRead"}}},"description":""}}}}}}
```

## PUT /api/managed-documents/{id}/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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":{"ManagedDocumentWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"policy":{"type":"string","format":"uuid","writeOnly":true,"nullable":true},"document_type":{"allOf":[{"$ref":"#/components/schemas/DocumentTypeEnum"}],"writeOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"locale":{"type":"string","maxLength":100},"default_locale":{"type":"boolean","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string"},"template_used":{"type":"string","nullable":true,"maxLength":200},"folder":{"type":"string","format":"uuid"},"container":{"type":"string","format":"uuid","nullable":true},"current_revision":{"type":"string","format":"uuid","readOnly":true,"nullable":true}},"required":["created_at","current_revision","default_locale","id","updated_at"]},"DocumentTypeEnum":{"enum":["policy","procedure","charter","record","meeting_minutes","other"],"type":"string","description":"* `policy` - Policy\n* `procedure` - Procedure\n* `charter` - Charter\n* `record` - Record\n* `meeting_minutes` - Meeting minutes\n* `other` - Other"}}},"paths":{"/api/managed-documents/{id}/":{"put":{"operationId":"managed_documents_update","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Managed document.","required":true}],"tags":["managed-documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}}},"description":""}}}}}}
```

## DELETE /api/managed-documents/{id}/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/":{"delete":{"operationId":"managed_documents_destroy","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Managed document.","required":true}],"tags":["managed-documents"],"responses":{"204":{"description":"No response body"}}}}}}
```

## PATCH /api/managed-documents/{id}/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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":{"PatchedManagedDocumentWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"policy":{"type":"string","format":"uuid","writeOnly":true,"nullable":true},"document_type":{"allOf":[{"$ref":"#/components/schemas/DocumentTypeEnum"}],"writeOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"locale":{"type":"string","maxLength":100},"default_locale":{"type":"boolean","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string"},"template_used":{"type":"string","nullable":true,"maxLength":200},"folder":{"type":"string","format":"uuid"},"container":{"type":"string","format":"uuid","nullable":true},"current_revision":{"type":"string","format":"uuid","readOnly":true,"nullable":true}}},"DocumentTypeEnum":{"enum":["policy","procedure","charter","record","meeting_minutes","other"],"type":"string","description":"* `policy` - Policy\n* `procedure` - Procedure\n* `charter` - Charter\n* `record` - Record\n* `meeting_minutes` - Meeting minutes\n* `other` - Other"},"ManagedDocumentWrite":{"type":"object","properties":{"id":{"type":"string","format":"uuid","readOnly":true},"policy":{"type":"string","format":"uuid","writeOnly":true,"nullable":true},"document_type":{"allOf":[{"$ref":"#/components/schemas/DocumentTypeEnum"}],"writeOnly":true},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"locale":{"type":"string","maxLength":100},"default_locale":{"type":"boolean","readOnly":true},"name":{"type":"string","maxLength":200},"description":{"type":"string"},"template_used":{"type":"string","nullable":true,"maxLength":200},"folder":{"type":"string","format":"uuid"},"container":{"type":"string","format":"uuid","nullable":true},"current_revision":{"type":"string","format":"uuid","readOnly":true,"nullable":true}},"required":["created_at","current_revision","default_locale","id","updated_at"]}}},"paths":{"/api/managed-documents/{id}/":{"patch":{"operationId":"managed_documents_partial_update","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Managed document.","required":true}],"tags":["managed-documents"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchedManagedDocumentWrite"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PatchedManagedDocumentWrite"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/PatchedManagedDocumentWrite"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManagedDocumentWrite"}}},"description":""}}}}}}
```

## GET /api/managed-documents/{id}/cascade-info/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/cascade-info/":{"get":{"operationId":"managed_documents_cascade_info_retrieve","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/managed-documents/{id}/create-new-draft/

> Create a new draft revision cloned from the current revision.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/create-new-draft/":{"post":{"operationId":"managed_documents_create_new_draft_create","description":"Create a new draft revision cloned from the current revision.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Managed document.","required":true}],"tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/managed-documents/{id}/link-revision/

> Set an external URL as a new draft revision — or replace the current\
> draft's URL. Follows the same review/publish lifecycle.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/link-revision/":{"post":{"operationId":"managed_documents_link_revision_create","description":"Set an external URL as a new draft revision — or replace the current\ndraft's URL. Follows the same review/publish lifecycle.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Managed document.","required":true}],"tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/managed-documents/{id}/neighborhood/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/neighborhood/":{"get":{"operationId":"managed_documents_neighborhood_retrieve","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/managed-documents/{id}/object/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/object/":{"get":{"operationId":"managed_documents_object_retrieve","description":"API endpoint that allows managed documents to be viewed or edited.","parameters":[{"in":"path","name":"id","schema":{"type":"string"},"required":true}],"tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/managed-documents/{id}/upload-image/

> Upload an image file and attach it to this document.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/upload-image/":{"post":{"operationId":"managed_documents_upload_image_create","description":"Upload an image file and attach it to this document.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Managed document.","required":true}],"tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/managed-documents/{id}/upload-revision/

> Upload a file as a new draft revision — or replace the current draft's\
> file. Uploaded revisions follow the same review/publish lifecycle.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/{id}/upload-revision/":{"post":{"operationId":"managed_documents_upload_revision_create","description":"Upload a file as a new draft revision — or replace the current draft's\nfile. Uploaded revisions follow the same review/publish lifecycle.","parameters":[{"in":"path","name":"id","schema":{"type":"string","format":"uuid"},"description":"A UUID string identifying this Managed document.","required":true}],"tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/managed-documents/autocomplete/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/autocomplete/":{"get":{"operationId":"managed_documents_autocomplete_retrieve","description":"API endpoint that allows managed documents to be viewed or edited.","tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## POST /api/managed-documents/batch-action/

> API endpoint that allows managed documents to be viewed or edited.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/batch-action/":{"post":{"operationId":"managed_documents_batch_action_create","description":"API endpoint that allows managed documents to be viewed or edited.","tags":["managed-documents"],"responses":{"200":{"description":"No response body"}}}}}}
```

## GET /api/managed-documents/templates/

> List available document templates (DB-backed) for a language, falling\
> back to English when the requested language has none.

```json
{"openapi":"3.0.3","info":{"title":"CISO Assistant API","version":"v4.3.4"},"tags":[{"name":"managed-documents"}],"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/managed-documents/templates/":{"get":{"operationId":"managed_documents_templates_retrieve","description":"List available document templates (DB-backed) for a language, falling\nback to English when the requested language has none.","tags":["managed-documents"],"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/managed-documents.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.
