Plan a release upgrade (DAWG-153): open a `dist_upgrade` proposal for every host on `from` — or those in one group — to `to`.
const url = 'https://api.updawg.net/v1/orgs/example/release-upgrades';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"distro":"example","from":"example","group_id":"example","to":"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/example/release-upgrades \ --header 'Content-Type: application/json' \ --data '{ "distro": "example", "from": "example", "group_id": "example", "to": "example" }'It names no packages. Run its preflight to check each host against the target: disk, held packages, edited configuration, DKMS, snapshots, and whether each third-party repository publishes the target. It cannot be approved yet: no agent executes a release upgrade.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”object
As distro on a host: debian.
The release its hosts run now: 13.
Only the hosts in this group (grp_…). Absent is every host on from.
The release to move them to: 14. One of from’s targets.
Examplegenerated
{ "distro": "example", "from": "example", "group_id": "example", "to": "example"}Responses
Section titled “Responses”Planned.
object
The hosts it targets.
The prp_… id of the dist_upgrade proposal.
Examplegenerated
{ "hosts": 1, "number": 1, "proposal_id": "example"}No such release, or to is not one from can be upgraded to.
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 group here.
object
Examplegenerated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The same release, target and group are planned already (already-planned, detail names it), or no host runs the release (no-hosts).
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"}