API reference for managing organizations
GET /api/org/list
POST /api/org/create_org
Query Parameters:
Parameter | Required | Description |
---|---|---|
name | Yes | Name of the organization to create |
Field | Type | Description |
---|---|---|
id | string (UUID) | Organization ID |
name | string | Organization name |
created_at | string (datetime) | Creation timestamp |
updated_at | string (datetime) | Last update timestamp |
user_role | object | Role of the user in this organization |
user_role.role_id | string (UUID) | Role ID |
user_role.role_name | string | Role name |
user_role.level | integer | Role level/hierarchy (higher means more permissions) |
Status Code | Description |
---|---|
400 | Bad Request - Invalid input or validation error |
401 | Unauthorized - Invalid or missing token |
403 | Forbidden - Insufficient permissions |
409 | Conflict - Organization with the same name already exists |
500 | Internal Server Error - Server-side error |