Edit org name and/or avatar
ADMIN+. `regenerateAvatar: true` rolls the DiceBear seed to a new UUID. Both fields optional; an empty body is a no-op `204`.
/api/organizations/{orgId}ADMIN+. regenerateAvatar: true rolls the DiceBear seed to a new UUID. Both fields optional; an empty body is a no-op 204.
Path Parameters
Organisation id (cuid)
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PATCH "https://loading/api/organizations/string" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme Labs", "regenerateAvatar": true }'Create a TEAM organisation POST
Creates a TEAM-type org with the caller as its OWNER. Personal Space is auto-provisioned by Auth.js's `createUser` event — this route only mints TEAM orgs.
Hard-delete a TEAM organisation DELETE
OWNER-only. Cascades projects → sessions → slices → events → tracked users. Personal Space deletion is rejected with `403`. Members whose `activeOrganizationId` pointed here are flipped to their Personal Space first.