Workspaces Logo
API endpoints for Workspaces Logo
POST
/api/workspaces/{workspace_id}/logo Store uploads a logo image for a workspace.
Accepts a base64-encoded image file (png, jpg, gif, webp) up to 1MB. Stores the file and updates the workspace's logo URL. Returns 400 if validation fails.
Request Body request.ImageUpload
Image Upload
| Property | Type | Description |
|---|---|---|
| file_base64* | string | Base64-encoded image file |
| file_filename* | string | Original filename with extension |
Response Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Invalid request |
| 422 | Validation failed |
| 500 | Internal server error |
DELETE
/api/workspaces/{workspace_id}/logo Remove removes the logo from a workspace.
Clears the workspace's logo URL. Does not delete the file from storage. Returns success even if no logo was set.
Response Codes
| Status Code | Description |
|---|---|
| 200 | Success |
| 500 | Internal server error |