Update organization (owner only)
Organizations
Update Organization
⚠️ SECURITY: Only the organization OWNER can update organization details. Admins and members cannot perform this action.
PUT
Update organization (owner only)
Updates organization details.
Authentication
This endpoint requires authentication via Bearer token:- Authorization:
Bearer <token>
⚠️ Security
Only the organization OWNER can update organization details. Admins and members cannot perform this action. This is enforced at the business logic layer.Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Organization UUID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Organization name (3-100 characters) |
logo | string | No | URL to organization logo image |
Updatable Fields
- Organization name: Can be changed anytime
- Logo URL: Can be updated or removed
Example Request
Example Response
Common Errors
403 Forbidden
Only the owner can update organization details.404 Not Found
The organization with the specified ID does not exist.400 Bad Request
Invalid input data (e.g., name too short).Best Practices
- Update organization name to reflect rebranding
- Use high-quality logos (recommended: 512x512px, PNG or SVG)
- Keep logo file size under 2MB
- Consider notifying team members of significant changes
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
Organization updated successfully by the owner.