Welcome to Water Restrictions, your go-to source for up-to-date information on water restrictions in your area.Water Restrictions LogoWater Restrictions

Get Stage Assignments

Gets all stage assignments for an area as a paginated timeline, sorted newest first. Includes the currently active assignment.

GET
/v1/areas/{areaId}/stage-assignments

Gets all stage assignments for an area as a paginated timeline, sorted newest first. Includes the currently active assignment.

Path Parameters

areaId*string
Formatuuid

Query Parameters

page?|
Match^-?(?:0|[1-9]\d*)$
Formatint32
pageSize?|
Match^-?(?:0|[1-9]\d*)$
Formatint32
from?string
Formatdate-time
until?string
Formatdate-time

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/areas/497f6eca-6276-4993-bfeb-53cbbbba6f08/stage-assignments"
{  "items": [    {      "assignmentId": "dbf5135c-beb7-4185-80db-2e980c77381b",      "stage": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string",        "severity": 0      },      "effectiveFrom": "2019-08-24T14:15:22Z",      "effectiveUntil": null,      "createdBy": "string",      "scheduledChangeId": null,      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "pageNumber": 0,  "pageSize": 0,  "totalCount": 0,  "totalPages": 0,  "hasPreviousPage": true,  "hasNextPage": true}
{  "type": null,  "title": null,  "status": null,  "detail": null,  "instance": null}
{  "type": null,  "title": null,  "status": null,  "detail": null,  "instance": null}
{  "type": null,  "title": null,  "status": null,  "detail": null,  "instance": null}