curl --request POST \
--url https://cloud.kaneo.app/api/auth/organization/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"slug": "<string>",
"userId": "<string>",
"logo": "<string>",
"metadata": "<string>",
"keepCurrentActiveOrganization": true,
"description": "<string>"
}
'{
"name": "<string>",
"slug": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"logo": "<string>",
"metadata": "<string>",
"description": "<string>"
}Create an organization
curl --request POST \
--url https://cloud.kaneo.app/api/auth/organization/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"slug": "<string>",
"userId": "<string>",
"logo": "<string>",
"metadata": "<string>",
"keepCurrentActiveOrganization": true,
"description": "<string>"
}
'{
"name": "<string>",
"slug": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"id": "<string>",
"logo": "<string>",
"metadata": "<string>",
"description": "<string>"
}Bearer token authentication
The name of the organization
The slug of the organization
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"
The logo of the organization
The metadata of the organization
Whether to keep the current active organization active after creating a new one. Eg: true
Was this page helpful?