async fn create_organization(
payload: Json<OrganizationCreatePayload>,
pool: Data<PgPool>,
file_store: Data<dyn FileStore>,
app_conf: Data<ApplicationConfiguration>,
user: AuthUser,
) -> ControllerResult<Json<Organization>>
Expand description
POST /api/v0/main-frontend/organizations
Creates a new organization with the given name, slug, and visibility status.
§Request body (JSON)
{ “name”: “Example Organization”, “slug”: “example-org”, “hidden”: false }
§Response
Returns the created organization.
§Permissions
Only users with the Admin
role can access this endpoint.