> 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/users.md).

# Users

## GET /app/api/v1/users

> List all users

```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":{"PaginatedUsers":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"next":{"type":"string","format":"uri","readOnly":true,"nullable":true},"previous":{"type":"string","format":"uri","readOnly":true,"nullable":true},"results":{"type":"array","items":{"$ref":"#/components/schemas/User"},"readOnly":true}},"required":["count","next","previous","results"]},"User":{"type":"object","description":"Curated external user shape.","properties":{"id":{"type":"integer","readOnly":true,"nullable":true,"description":"Internal user ID."},"user_id":{"type":"string","readOnly":true,"description":"User identifier returned by list/create"},"email":{"type":"string","format":"email","readOnly":true,"nullable":true},"full_name":{"type":"string","readOnly":true,"nullable":true},"role":{"readOnly":true,"nullable":true,"oneOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"active":{"type":"boolean","readOnly":true,"nullable":true},"last_login_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true}},"required":["active","created_at","email","full_name","id","last_login_at","role","user_id"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"},"NullEnum":{"enum":[null]}}},"paths":{"/app/api/v1/users":{"get":{"operationId":"users_list_external","description":"List all users","parameters":[{"in":"query","name":"limit","schema":{"type":"integer","maximum":100,"minimum":1,"default":50}},{"in":"query","name":"offset","schema":{"type":"integer","minimum":0,"default":0}},{"in":"query","name":"sort_dir","schema":{"enum":["asc","desc"],"type":"string","default":"asc","minLength":1},"description":"* `asc` - asc\n* `desc` - desc"}],"tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedUsers"}}},"description":"Paginated user list"},"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"}}}}}}
```

## POST /app/api/v1/users

> Create a new user

```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":{"UserCreateSerializerToCustomer":{"type":"object","description":"Body for creating a single user.","properties":{"email":{"type":"string","format":"email"},"full_name":{"type":"string","nullable":true},"role":{"$ref":"#/components/schemas/UserRoleEnum"}},"required":["email","role"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"},"User":{"type":"object","description":"Curated external user shape.","properties":{"id":{"type":"integer","readOnly":true,"nullable":true,"description":"Internal user ID."},"user_id":{"type":"string","readOnly":true,"description":"User identifier returned by list/create"},"email":{"type":"string","format":"email","readOnly":true,"nullable":true},"full_name":{"type":"string","readOnly":true,"nullable":true},"role":{"readOnly":true,"nullable":true,"oneOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"active":{"type":"boolean","readOnly":true,"nullable":true},"last_login_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true}},"required":["active","created_at","email","full_name","id","last_login_at","role","user_id"]},"NullEnum":{"enum":[null]}}},"paths":{"/app/api/v1/users":{"post":{"operationId":"users_create_external","description":"Create a new user","tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateSerializerToCustomer"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/UserCreateSerializerToCustomer"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UserCreateSerializerToCustomer"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":"Created user"},"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/users/{user\_id}

> Get a user by ID

```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":{"User":{"type":"object","description":"Curated external user shape.","properties":{"id":{"type":"integer","readOnly":true,"nullable":true,"description":"Internal user ID."},"user_id":{"type":"string","readOnly":true,"description":"User identifier returned by list/create"},"email":{"type":"string","format":"email","readOnly":true,"nullable":true},"full_name":{"type":"string","readOnly":true,"nullable":true},"role":{"readOnly":true,"nullable":true,"oneOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"active":{"type":"boolean","readOnly":true,"nullable":true},"last_login_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true}},"required":["active","created_at","email","full_name","id","last_login_at","role","user_id"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"},"NullEnum":{"enum":[null]}}},"paths":{"/app/api/v1/users/{user_id}":{"get":{"operationId":"users_retrieve_external","description":"Get a user by ID","parameters":[{"in":"path","name":"user_id","schema":{"type":"string"},"required":true}],"tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"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"},"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"}}}}}}
```

## POST /app/api/v1/users/{user\_id}/disable

> Disable a user

```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":{"User":{"type":"object","description":"Curated external user shape.","properties":{"id":{"type":"integer","readOnly":true,"nullable":true,"description":"Internal user ID."},"user_id":{"type":"string","readOnly":true,"description":"User identifier returned by list/create"},"email":{"type":"string","format":"email","readOnly":true,"nullable":true},"full_name":{"type":"string","readOnly":true,"nullable":true},"role":{"readOnly":true,"nullable":true,"oneOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"active":{"type":"boolean","readOnly":true,"nullable":true},"last_login_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true}},"required":["active","created_at","email","full_name","id","last_login_at","role","user_id"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"},"NullEnum":{"enum":[null]}}},"paths":{"/app/api/v1/users/{user_id}/disable":{"post":{"operationId":"users_disable_external","description":"Disable a user","parameters":[{"in":"path","name":"user_id","schema":{"type":"string"},"required":true}],"tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"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"},"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"}}}}}}
```

## POST /app/api/v1/users/{user\_id}/enable

> Enable a user

```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":{"User":{"type":"object","description":"Curated external user shape.","properties":{"id":{"type":"integer","readOnly":true,"nullable":true,"description":"Internal user ID."},"user_id":{"type":"string","readOnly":true,"description":"User identifier returned by list/create"},"email":{"type":"string","format":"email","readOnly":true,"nullable":true},"full_name":{"type":"string","readOnly":true,"nullable":true},"role":{"readOnly":true,"nullable":true,"oneOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"active":{"type":"boolean","readOnly":true,"nullable":true},"last_login_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true}},"required":["active","created_at","email","full_name","id","last_login_at","role","user_id"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"},"NullEnum":{"enum":[null]}}},"paths":{"/app/api/v1/users/{user_id}/enable":{"post":{"operationId":"users_enable_external","description":"Enable a user","parameters":[{"in":"path","name":"user_id","schema":{"type":"string"},"required":true}],"tags":["users"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"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"},"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"}}}}}}
```

## PUT /app/api/v1/users/{user\_id}/role

> Update a user's role

```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":{"UserRoleUpdateSerializerToCustomer":{"type":"object","description":"Body for PUT /app/api/v1/users/<user_id>/role.","properties":{"role":{"$ref":"#/components/schemas/UserRoleEnum"}},"required":["role"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"},"User":{"type":"object","description":"Curated external user shape.","properties":{"id":{"type":"integer","readOnly":true,"nullable":true,"description":"Internal user ID."},"user_id":{"type":"string","readOnly":true,"description":"User identifier returned by list/create"},"email":{"type":"string","format":"email","readOnly":true,"nullable":true},"full_name":{"type":"string","readOnly":true,"nullable":true},"role":{"readOnly":true,"nullable":true,"oneOf":[{"$ref":"#/components/schemas/UserRoleEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"active":{"type":"boolean","readOnly":true,"nullable":true},"last_login_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true},"created_at":{"type":"string","format":"date-time","readOnly":true,"nullable":true}},"required":["active","created_at","email","full_name","id","last_login_at","role","user_id"]},"NullEnum":{"enum":[null]}}},"paths":{"/app/api/v1/users/{user_id}/role":{"put":{"operationId":"users_change_role_external","description":"Update a user's role","parameters":[{"in":"path","name":"user_id","schema":{"type":"string"},"required":true}],"tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRoleUpdateSerializerToCustomer"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/UserRoleUpdateSerializerToCustomer"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/UserRoleUpdateSerializerToCustomer"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":""},"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"},"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"}}}}}}
```

## POST /app/api/v1/users/bulk

> Bulk create users. Always returns HTTP 200 with per-item results and a summary. Item-level failures use \`status: "error"\` and \`error\_msg\`. Duplicate emails are reported as skipped.

```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":{"BulkUserCreateSerializerToCustomer":{"type":"object","description":"Body for POST /app/api/v1/users/bulk.","properties":{"users":{"type":"array","items":{"$ref":"#/components/schemas/UserCreateSerializerToCustomer"}}},"required":["users"]},"UserCreateSerializerToCustomer":{"type":"object","description":"Body for creating a single user.","properties":{"email":{"type":"string","format":"email"},"full_name":{"type":"string","nullable":true},"role":{"$ref":"#/components/schemas/UserRoleEnum"}},"required":["email","role"]},"UserRoleEnum":{"enum":["admin","member","restricted-read-only"],"type":"string","description":"* `admin` - admin\n* `member` - member\n* `restricted-read-only` - restricted-read-only"},"BulkUserCreateOperationResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/BulkUserCreateResultItem"},"readOnly":true},"summary":{"allOf":[{"$ref":"#/components/schemas/BulkUserSummary"}],"readOnly":true}},"required":["results","summary"]},"BulkUserCreateResultItem":{"type":"object","description":"One bulk enable/disable outcome row.","properties":{"user_id":{"type":"string","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/BulkUserItemStatusEnum"}],"description":"Per-item outcome. Failures use status=error with error_msg; bulk endpoints still return HTTP 200 (not HTTP 404 per missing user).\n\n* `succeeded` - SUCCEEDED\n* `skipped` - SKIPPED\n* `error` - ERROR"},"error_msg":{"type":"string","nullable":true,"description":"Present when status is error (unknown user, invalid id, upstream failure, etc.)."},"email":{"type":"string","format":"email","nullable":true}},"required":["status"]},"BulkUserItemStatusEnum":{"enum":["succeeded","skipped","error"],"type":"string","description":"* `succeeded` - SUCCEEDED\n* `skipped` - SKIPPED\n* `error` - ERROR"},"BulkUserSummary":{"type":"object","properties":{"succeeded_count":{"type":"integer","readOnly":true},"skipped_count":{"type":"integer","readOnly":true},"error_count":{"type":"integer","readOnly":true}},"required":["error_count","skipped_count","succeeded_count"]}}},"paths":{"/app/api/v1/users/bulk":{"post":{"operationId":"users_bulk_create_external","description":"Bulk create users. Always returns HTTP 200 with per-item results and a summary. Item-level failures use `status: \"error\"` and `error_msg`. Duplicate emails are reported as skipped.","tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserCreateSerializerToCustomer"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/BulkUserCreateSerializerToCustomer"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BulkUserCreateSerializerToCustomer"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserCreateOperationResponse"}}},"description":""},"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"}}}}}}
```

## POST /app/api/v1/users/bulk/disable

> Bulk disable users. Always returns HTTP 200 with per-item results and a summary. Item-level failures use \`status: "error"\` and \`error\_msg\`.

```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":{"BulkUserIdsRequest":{"type":"object","description":"Body for bulk enable/disable.","properties":{"user_ids":{"type":"array","items":{"type":"string"}}},"required":["user_ids"]},"BulkUserOperationResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/BulkUserResultItem"},"readOnly":true},"summary":{"allOf":[{"$ref":"#/components/schemas/BulkUserSummary"}],"readOnly":true}},"required":["results","summary"]},"BulkUserResultItem":{"type":"object","description":"One bulk enable/disable outcome row.","properties":{"user_id":{"type":"string","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/BulkUserItemStatusEnum"}],"description":"Per-item outcome. Failures use status=error with error_msg; bulk endpoints still return HTTP 200 (not HTTP 404 per missing user).\n\n* `succeeded` - SUCCEEDED\n* `skipped` - SKIPPED\n* `error` - ERROR"},"error_msg":{"type":"string","nullable":true,"description":"Present when status is error (unknown user, invalid id, upstream failure, etc.)."}},"required":["status"]},"BulkUserItemStatusEnum":{"enum":["succeeded","skipped","error"],"type":"string","description":"* `succeeded` - SUCCEEDED\n* `skipped` - SKIPPED\n* `error` - ERROR"},"BulkUserSummary":{"type":"object","properties":{"succeeded_count":{"type":"integer","readOnly":true},"skipped_count":{"type":"integer","readOnly":true},"error_count":{"type":"integer","readOnly":true}},"required":["error_count","skipped_count","succeeded_count"]}}},"paths":{"/app/api/v1/users/bulk/disable":{"post":{"operationId":"users_bulk_disable_external","description":"Bulk disable users. Always returns HTTP 200 with per-item results and a summary. Item-level failures use `status: \"error\"` and `error_msg`.","tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserOperationResponse"}}},"description":""},"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"}}}}}}
```

## POST /app/api/v1/users/bulk/enable

> Bulk enable users. Always returns HTTP 200 with per-item results and a summary. Item-level failures use \`status: "error"\` and \`error\_msg\`.

```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":{"BulkUserIdsRequest":{"type":"object","description":"Body for bulk enable/disable.","properties":{"user_ids":{"type":"array","items":{"type":"string"}}},"required":["user_ids"]},"BulkUserOperationResponse":{"type":"object","properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/BulkUserResultItem"},"readOnly":true},"summary":{"allOf":[{"$ref":"#/components/schemas/BulkUserSummary"}],"readOnly":true}},"required":["results","summary"]},"BulkUserResultItem":{"type":"object","description":"One bulk enable/disable outcome row.","properties":{"user_id":{"type":"string","nullable":true},"status":{"allOf":[{"$ref":"#/components/schemas/BulkUserItemStatusEnum"}],"description":"Per-item outcome. Failures use status=error with error_msg; bulk endpoints still return HTTP 200 (not HTTP 404 per missing user).\n\n* `succeeded` - SUCCEEDED\n* `skipped` - SKIPPED\n* `error` - ERROR"},"error_msg":{"type":"string","nullable":true,"description":"Present when status is error (unknown user, invalid id, upstream failure, etc.)."}},"required":["status"]},"BulkUserItemStatusEnum":{"enum":["succeeded","skipped","error"],"type":"string","description":"* `succeeded` - SUCCEEDED\n* `skipped` - SKIPPED\n* `error` - ERROR"},"BulkUserSummary":{"type":"object","properties":{"succeeded_count":{"type":"integer","readOnly":true},"skipped_count":{"type":"integer","readOnly":true},"error_count":{"type":"integer","readOnly":true}},"required":["error_count","skipped_count","succeeded_count"]}}},"paths":{"/app/api/v1/users/bulk/enable":{"post":{"operationId":"users_bulk_enable_external","description":"Bulk enable users. Always returns HTTP 200 with per-item results and a summary. Item-level failures use `status: \"error\"` and `error_msg`.","tags":["users"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}},"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}},"multipart/form-data":{"schema":{"$ref":"#/components/schemas/BulkUserIdsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkUserOperationResponse"}}},"description":""},"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"}}}}}}
```
