Skip to main content

Update organization

Owner or admin updates name and/or handle. Requires a Bearer session.
1 min read
patch/organizations/{organizationId}
Request example
Response
patch/organizations/{organizationId}

Authorization

Authorizationstringheaderrequired#
Better Auth session token. Go resolves the token in the session table and maps it to users.id via auth_user_id. The profile is taken from the path param :studioId when applicable.

Path parameters

organizationIdstringrequired#
Organization UUID or handle slug.

Body

application/json
namestring#
handlestring#

Responses

application/json
OK.
dataobjectrequired#
Show child attributes
idstringrequired#
namestringrequired#
handlestring#
URL slug when set; omitted when the org has no reserved handle yet.
ownerIdstringrequired#
roleenum<string>required#
Options:owneradminmember
memberCountintegerrequired#
profileCountintegerrequired#
canManagebooleanrequired#