`GET /v1/orgs/{org}/proposals/grouped?by=policy|group` (DAWG-303).
const url = 'https://api.updawg.net/v1/orgs/example/proposals/grouped?by=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/example/proposals/grouped?by=example'The sections of a grouped inbox and how many proposals each holds, under
the same ?status= as the list. Each section opens with the list’s
?policy= or ?group= — none for the section without one — so a section
pages like the inbox does rather than arriving whole.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Query Parameters
Section titled “Query Parameters”policy or group.
Repeatable, as on the list. Omitted means every status.
Responses
Section titled “Responses”Biggest section first; the one for proposals with no policy or group last.
object
policy or group, as asked.
⚠️ true when a proposal can be in more than one section, so the totals
add up to more than the inbox holds: by group, a proposal across hosts in
two groups is in both.
One section of a grouped inbox.
object
A policy deleted since it made these proposals.
pol_… or grp_…, to pass as the list’s ?policy= or ?group=.
null is the section for proposals with neither: pass none.
Example generated
{ "by": "example", "overlapping": true, "sections": [ { "deleted": true, "id": "example", "name": "example", "total": 1 } ]}No by, an unknown one, an unknown status or parameter.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours.
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"}