Post Organization Create

Create an organization

Authentication

AuthorizationBearer
Bearer token authentication

Request

This endpoint expects an object.
namestringRequired
The name of the organization
slugstringRequired
The slug of the organization
userIdstring or nullOptional

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”

metadatamap from strings to any or nullOptional
The metadata of the organization
keepCurrentActiveOrganizationboolean or nullOptional

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

Response

Success
namestring
slugstring
createdAtdatetime
idstring
metadatastring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error