Supercheck LogoSupercheck
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
/api/organizations/{id}

Authorization

sessionCookie
cookiebetter-auth.session_token<token>

Interactive Better Auth browser session. Secure deployments may use the __Secure- cookie prefix.

Path Parameters

id*string

Organization ID

Request Body

application/json
  1. body
name*string

Display name. Leading and trailing whitespace is trimmed.

Length2 <= length <= 50
slug?string
logo?string
metadata?

Response Body

Organization updated

application/json
  1. response
success?boolean
organization?
Example Request
curl -X PUT 'https://demo.supercheck.dev/api/organizations/string' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "success": true,  "organization": {}}