Organizations API
Update organization
Update the organization name (2–50 characters after trim). Optional slug, logo, and metadata. Requires org_admin or org_owner. Browser updates require a same-origin request; CLI tokens retain their existing authorization. Requires an interactive browser session. Project-scoped CLI tokens receive 403.
PUT
sessionCookiecookie
better-auth.session_token<token>Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.
id*stringOrganization ID
application/json- body
name*stringDisplay name. Leading and trailing whitespace is trimmed.
Length
2 <= length <= 50slug?stringlogo?stringmetadata?Organization updated
application/json- response
success?booleanorganization?curl -X PUT 'https://demo.supercheck.dev/api/organizations/string' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "success": true, "organization": {}}