Saved views
4 operations in the WP Waterfall API.
- getList saved Sites list views
- postSave a Sites list view
- patchEdit a saved view
- deleteDelete a saved view
List saved Sites list views
get/saved-viewsPermalink to List saved Sites list views
- Permission:
sites.read - Dashboard session only, no API key
Lists the views of the Sites list that the signed-in person saved: each has a name, filters, columns, and a sort. A saved view belongs to one person, so colleagues do not see it. Needs a dashboard session: an API key cannot call it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | How many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200. |
cursor | query | string | The next_cursor of the page before. Leave it out for the first page. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SavedViewList | Saved views |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
data required | array of SavedView | The rows of this page. |
data[].id required | string (uuid) | UUIDv7 |
data[].name required | string | |
data[].filters required | object | |
data[].columns required | array of string | |
data[].sort required | object or null | |
data[].created_at required | string (date-time) | |
data[].updated_at required | string (date-time) | |
next_cursor required | string or null | Send it as cursor to get the next page. Null on the last page. |
Save a Sites list view
post/saved-viewsPermalink to Save a Sites list view
- Permission:
sites.read - Dashboard session only, no API key
Saves a set of Sites list filters, columns, and a sort under a name of up to 60 characters. columns defaults to every column and sort to null. Answers 201 with the view. Needs a dashboard session: an API key cannot call it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422. |
Request body application/json, required, CreateSavedViewRequest
Fields
| Name | Type | Description |
|---|---|---|
name required | string | |
filters | object | |
filters.label | string | |
filters.region | string | |
filters.node_id | string (uuid) | UUIDv7 |
filters.php | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
filters.search | string | |
filters.status | string | One of: live, staging, provisioning, attention. |
columns | array of string | |
sort | object or null | |
sort.column required | string | One of: name, labels, php_version, wordpress_version, region, disk, health. |
sort.direction required | string | One of: asc, desc. |
Responses
| Status | Body | Description |
|---|---|---|
201 | SavedView | Saved view |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
201 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
name required | string | |
filters required | object | |
filters.label | string | |
filters.region | string | |
filters.node_id | string (uuid) | UUIDv7 |
filters.php | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
filters.search | string | |
filters.status | string | One of: live, staging, provisioning, attention. |
columns required | array of string | |
sort required | object or null | |
sort.column required | string | One of: name, labels, php_version, wordpress_version, region, disk, health. |
sort.direction required | string | One of: asc, desc. |
created_at required | string (date-time) | |
updated_at required | string (date-time) |
Edit a saved view
patch/saved-views/{id}Permalink to Edit a saved view
- Permission:
sites.read - Dashboard session only, no API key
Changes the name, filters, columns, or sort of one of the person's own saved views. Fields left out keep their value. Answers 404 when the view is not theirs. Needs a dashboard session: an API key cannot call it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the saved view. |
Idempotency-Key | header | string | Optional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job. |
Request body application/json, required, PatchSavedViewRequest
Fields
| Name | Type | Description |
|---|---|---|
name | string | |
filters | object | |
filters.label | string | |
filters.region | string | |
filters.node_id | string (uuid) | UUIDv7 |
filters.php | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
filters.search | string | |
filters.status | string | One of: live, staging, provisioning, attention. |
columns | array of string | |
sort | object or null | |
sort.column required | string | One of: name, labels, php_version, wordpress_version, region, disk, health. |
sort.direction required | string | One of: asc, desc. |
Responses
| Status | Body | Description |
|---|---|---|
200 | SavedView | Saved view |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
200 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
name required | string | |
filters required | object | |
filters.label | string | |
filters.region | string | |
filters.node_id | string (uuid) | UUIDv7 |
filters.php | string | One of: 8.1, 8.2, 8.3, 8.4, 8.5. |
filters.search | string | |
filters.status | string | One of: live, staging, provisioning, attention. |
columns required | array of string | |
sort required | object or null | |
sort.column required | string | One of: name, labels, php_version, wordpress_version, region, disk, health. |
sort.direction required | string | One of: asc, desc. |
created_at required | string (date-time) | |
updated_at required | string (date-time) |
Delete a saved view
delete/saved-views/{id}Permalink to Delete a saved view
- Permission:
sites.read - Dashboard session only, no API key
Deletes one of the person's own saved views. Answers 204, or 404 when the view is not theirs. Needs a dashboard session: an API key cannot call it.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string (uuid) | The id of the saved view. |
Responses
| Status | Body | Description |
|---|---|---|
204 | Deleted | |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
404 | Problem | The thing in the path does not exist, or it belongs to another company. The answer is the same for both. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |