Post Organization Create
Create an organization
Authentication
AuthorizationBearer
Bearer token authentication
Request
This endpoint expects an object.
name
The name of the organization
slug
The slug of the organization
userId
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”
logo
metadata
The metadata of the organization
keepCurrentActiveOrganization
Whether to keep the current active organization active after creating a new one. Eg: true
Response
Success
name
slug
createdAt
id
logo
metadata
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error