> For the complete documentation index, see [llms.txt](https://docs.dropzone.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dropzone.ai/api/investigation-user-notes.md).

# Investigation User Notes

## POST /app/api/v1/investigation-user-notes/{investigation\_id}/create

> Add a new investigation note

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"InvestigationNoteNested":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"user":{"$ref":"#/components/schemas/CustomUser"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"text":{"type":"string"},"investigation":{"type":"integer"}},"required":["created_at","id","investigation","updated_at","user"]},"CustomUser":{"type":"object","description":"Basic serializer to pass CustomUser details to the front end.\nExtend with any fields your app needs.","properties":{"id":{"type":"integer","readOnly":true},"first_name":{"type":"string","maxLength":150},"last_name":{"type":"string","maxLength":150},"email":{"title":"Email address","oneOf":[{"type":"string","format":"email","maxLength":254},{"type":"string","maxLength":0}]},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"oidc_user_id":{"type":"string","nullable":true}},"required":["id","role"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"}}},"paths":{"/app/api/v1/investigation-user-notes/{investigation_id}/create":{"post":{"operationId":"investigation_user_notes_create_create","description":"Add a new investigation note","parameters":[{"in":"path","name":"investigation_id","schema":{"type":"integer"},"required":true}],"tags":["investigation-user-notes"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationNoteNested"}}},"description":"New investigation note"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## GET /app/api/v1/investigation-user-notes/{investigation\_id}/list

> List user notes for an investigation

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"InvestigationNoteNested":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"user":{"$ref":"#/components/schemas/CustomUser"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"text":{"type":"string"},"investigation":{"type":"integer"}},"required":["created_at","id","investigation","updated_at","user"]},"CustomUser":{"type":"object","description":"Basic serializer to pass CustomUser details to the front end.\nExtend with any fields your app needs.","properties":{"id":{"type":"integer","readOnly":true},"first_name":{"type":"string","maxLength":150},"last_name":{"type":"string","maxLength":150},"email":{"title":"Email address","oneOf":[{"type":"string","format":"email","maxLength":254},{"type":"string","maxLength":0}]},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"oidc_user_id":{"type":"string","nullable":true}},"required":["id","role"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"}}},"paths":{"/app/api/v1/investigation-user-notes/{investigation_id}/list":{"get":{"operationId":"investigation_user_notes_list_retrieve","description":"List user notes for an investigation","parameters":[{"in":"path","name":"investigation_id","schema":{"type":"integer"},"required":true}],"tags":["investigation-user-notes"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvestigationNoteNested"}}}},"description":"Investigation user notes"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## DELETE /app/api/v1/investigation-user-notes/{investigation\_note\_id}/delete

> Delete an investigation note

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}}},"paths":{"/app/api/v1/investigation-user-notes/{investigation_note_id}/delete":{"delete":{"operationId":"investigation_user_notes_delete_destroy","description":"Delete an investigation note","parameters":[{"in":"path","name":"investigation_note_id","schema":{"type":"integer"},"required":true}],"tags":["investigation-user-notes"],"responses":{"200":{"description":"Delete success"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"404":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Resource not found"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```

## PATCH /app/api/v1/investigation-user-notes/{investigation\_note\_id}/update

> Update an investigation note

```json
{"openapi":"3.0.3","info":{"title":"Dropzone AI","version":"0.1.0"},"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization"}},"schemas":{"InvestigationNoteNested":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"user":{"$ref":"#/components/schemas/CustomUser"},"created_at":{"type":"string","format":"date-time","readOnly":true},"updated_at":{"type":"string","format":"date-time","readOnly":true},"text":{"type":"string"},"investigation":{"type":"integer"}},"required":["created_at","id","investigation","updated_at","user"]},"CustomUser":{"type":"object","description":"Basic serializer to pass CustomUser details to the front end.\nExtend with any fields your app needs.","properties":{"id":{"type":"integer","readOnly":true},"first_name":{"type":"string","maxLength":150},"last_name":{"type":"string","maxLength":150},"email":{"title":"Email address","oneOf":[{"type":"string","format":"email","maxLength":254},{"type":"string","maxLength":0}]},"role":{"$ref":"#/components/schemas/UserRoleEnum"},"oidc_user_id":{"type":"string","nullable":true}},"required":["id","role"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"}}},"paths":{"/app/api/v1/investigation-user-notes/{investigation_note_id}/update":{"patch":{"operationId":"investigation_user_notes_update_partial_update","description":"Update an investigation note","parameters":[{"in":"path","name":"investigation_note_id","schema":{"type":"integer"},"required":true}],"tags":["investigation-user-notes"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"}}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvestigationNoteNested"}}},"description":"Updated investigation note"},"400":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Bad request - invalid input"},"401":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string"},"error_msg":{"type":"string"},"required_permission":{"type":"object","description":"RBAC permission the caller lacks. Present when the permission check denies the request.","properties":{"resource":{"type":"string"},"action":{"type":"string"}}}}}}},"description":"Access denied"},"500":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System error"},"503":{"content":{"application/json":{"schema":{"type":"object","properties":{"error_msg":{"type":"string"}}}}},"description":"System not ready for requests"}}}}}}
```
