API reference · Organizations
Create an organization
POST/api/orgsSigned in session
The creator becomes its owner. An organization is never ownerless.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| namerequired | string |
Example
{
"name": "string"
}Answer 201
Created.
| Field | Type | What it is |
|---|---|---|
| id | integer | |
| name | string | |
| createdAt | integer | |
| role | string |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 409OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.