`PATCH /v1/orgs/{org}`.
const url = 'https://api.updawg.net/v1/orgs/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"agent_auto_update":true,"audit_retention_days":1,"eol_lead_days":[1],"name":"example","slug":"example","stale_after_minutes":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.updawg.net/v1/orgs/example \ --header 'Content-Type: application/json' \ --data '{ "agent_auto_update": true, "audit_retention_days": 1, "eol_lead_days": [ 1 ], "name": "example", "slug": "example", "stale_after_minutes": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Keep agents on the stable channel without anybody approving each
update (DAWG-46). When stable moves, an agent update is opened and
approved on your authority, for every host behind it whose agent.toml
permits self_update. It stays yours: if you stop administering the
organization, nothing more is signed until somebody turns it on again.
Days to keep the audit log, 7 up to what the plan keeps
(audit_retention_max_days), or null for the plan’s whole window
(DAWG-160). Owner only. Shortening it deletes the older entries at the
next nightly run, and nothing brings them back.
Days before a release’s support ends to raise release.eol, each 1
to 730, at most six (DAWG-70). Stored longest first without repeats.
Empty leaves only the alert when support has ended.
Absent means “leave it alone”, which is not the same as an empty string.
Minutes without a check-in before a host is marked stale, 5 to 10,080 (DAWG-62). Set it above your longest expected outage — a reboot, a maintenance window — or every one of them marks hosts stale.
Examplegenerated
{ "agent_auto_update": true, "audit_retention_days": 1, "eol_lead_days": [ 1 ], "name": "example", "slug": "example", "stale_after_minutes": 1}Responses
Section titled “Responses”Updated.
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, or a stale threshold, EOL lead time or audit retention out of range.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours — one answer for both.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}That slug is taken.
object
Examplegenerated
{ "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
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}