Organization Management

Create Organization

Create an organization

post/auth/organization/create

Request body

namestring required

The name of the organization

slugstring required

The slug of the organization

userIdstring

The user id of the organization creator. If not provided, the current user will be used. Should only be used by admins or when called by the server. server-only. Eg: "user-id"

logostring nullable

The logo of the organization

metadataobject

The metadata of the organization

keepCurrentActiveOrganizationboolean

Whether to keep the current active organization active after creating a new one. Eg: true

descriptionstring nullable

Response

Success

{"stackTrail":"paths:/auth/organization/create:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes