`GET /v1/orgs/{org}`.
const url = 'https://api.updawg.net/v1/orgs/example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.updawg.net/v1/orgs/exampleAny member may read it. There is no ReadFleet-less role.
All of the work happened in the [Member] extractor, which is the point:
the organization is not looked up here because it cannot be reached without
having been resolved and authorized already.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Responses
Section titled “Responses”The organization.
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.
When changes stop for it, a week after over_allowance_since: from
then hosts keep reporting but nothing is installed or rebooted, and
approving is refused, until it is back within Free or on a paid plan.
Days before a release’s support ends to raise release.eol, longest
first (DAWG-70). 180, 90 and 30 unless somebody changed them.
When this Free organization was first seen over the Free allowance —
more hosts than Free allows, or its owner’s second Free organization —
or null when it is within it or on a paid plan (DAWG-295). Checked
nightly.
Where its data lives, eu or us (DAWG-159). Fixed at creation.
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"}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours — one answer for both.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}