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

{"stackTrail":"paths:/auth/organization/create:post:requestBody:content:application/json:schema:properties:userId","oasType":"schema","type":"unknown","description":"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\""}
{"stackTrail":"paths:/auth/organization/create:post:requestBody:content:application/json:schema:properties:logo","oasType":"schema","type":"unknown","description":"The logo of the organization"}
{"stackTrail":"paths:/auth/organization/create:post:requestBody:content:application/json:schema:properties:metadata","oasType":"schema","type":"unknown","description":"The metadata of the organization"}
{"stackTrail":"paths:/auth/organization/create:post:requestBody:content:application/json:schema:properties:keepCurrentActiveOrganization","oasType":"schema","type":"unknown","description":"Whether to keep the current active organization active after creating a new one. Eg: true"}
{"stackTrail":"paths:/auth/organization/create:post:requestBody:content:application/json:schema:properties:description","oasType":"schema","type":"unknown"}

Response

Success

idstring
namestring required
slugstring required
logostring
createdAtstring date-time required
metadatastring
descriptionstring

Changes