Openapi
Create an organization, assign the current user as owner, and return the created organization.
Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
In: cookie
application/json
The organization settings used to create the new organization.
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/organizations" \ -H "Content-Type: application/json" \ -d '{ "addressCity": "string", "addressCountry": "string", "addressLine1": "string", "addressLine2": "string", "addressPostalCode": "string", "addressState": "string", "btw": "string", "iban": "string", "kvk": "string", "name": "string", "phone": "string", "slug": "string", "website": "http://example.com", "socials": [ { "label": "string", "url": "http://example.com" } ], "colors": { "primary": "string", "secondary": "string" } }'{ "addressCity": "string", "addressCountry": "string", "addressLine1": "string", "addressLine2": "string", "addressPostalCode": "string", "addressState": "string", "aiInferenceRegion": "eu", "btw": "string", "iban": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kvk": "string", "name": "string", "phone": "string", "slug": "string", "website": "http://example.com", "socials": [ { "label": "string", "url": "http://example.com" } ], "branding": { "logoUrl": "http://example.com", "colors": { "primary": "string", "secondary": "string" }, "images": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "url": "http://example.com", "width": 1, "height": 1 } ] }, "operatingDefaults": {}, "createdAt": "2019-08-24T14:15:22Z", "disabledAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}length <= 200length <= 200length <= 200length <= 200length <= 200length <= 200length <= 200length <= 200length <= 2002 <= length <= 120length <= 20^[a-z0-9]+(?:-[a-z0-9]+)*$2 <= length <= 64uriitems <= 12