`POST /v1/orgs`.
const url = 'https://api.updawg.net/v1/orgs';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","slug":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/orgs \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "slug": "example" }'The creator is the owner, written in the same transaction as the
organization — otherwise there is an organization nobody can administer and
which does not appear in its own creator’s GET /v1/me.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Optional: derived from the name when it is not given.
Examplegenerated
{ "name": "example", "slug": "example"}Responses
Section titled “Responses”Created. The caller becomes its owner.
object
Whether agents are kept on the stable channel automatically (DAWG-46).
Days the audit log is kept if fewer than the plan keeps, or null for
the plan’s whole window (DAWG-160).
The most audit_retention_days may be on this plan.
Days before a release’s support ends to raise release.eol, longest
first (DAWG-70). 180, 90 and 30 unless somebody changed them.
The caller’s role, on every representation of an organization.
The portal needs it to decide what to render, and fetching it from
GET /me instead would mean the two can disagree after somebody’s role
changes in another tab.
Minutes without a check-in before a host is marked stale (DAWG-62). 5 to 10,080; 30 unless somebody changed it.
Example
{ "role": "viewer"}A name or slug that will not do.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Refused: no CSRF token or not this session’s, or not permitted for this role.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}That slug is taken (slug-taken), or the caller already owns an organization (organization-limit): one per person.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}