Skip to content

Saved views

4 operations in the WP Waterfall API.

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

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200SavedViewListSaved views
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of SavedViewThe rows of this page.
data[].id requiredstring (uuid)UUIDv7
data[].name requiredstring
data[].filters requiredobject
data[].columns requiredarray of string
data[].sort requiredobject or null
data[].created_at requiredstring (date-time)
data[].updated_at requiredstring (date-time)
next_cursor requiredstring or nullSend 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

NameInTypeDescription
Idempotency-Key requiredheaderstringSend 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

NameTypeDescription
name requiredstring
filtersobject
filters.labelstring
filters.regionstring
filters.node_idstring (uuid)UUIDv7
filters.phpstringOne of: 8.1, 8.2, 8.3, 8.4, 8.5.
filters.searchstring
filters.statusstringOne of: live, staging, provisioning, attention.
columnsarray of string
sortobject or null
sort.column requiredstringOne of: name, labels, php_version, wordpress_version, region, disk, health.
sort.direction requiredstringOne of: asc, desc.

Responses

StatusBodyDescription
201SavedViewSaved view
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

201 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
name requiredstring
filters requiredobject
filters.labelstring
filters.regionstring
filters.node_idstring (uuid)UUIDv7
filters.phpstringOne of: 8.1, 8.2, 8.3, 8.4, 8.5.
filters.searchstring
filters.statusstringOne of: live, staging, provisioning, attention.
columns requiredarray of string
sort requiredobject or null
sort.column requiredstringOne of: name, labels, php_version, wordpress_version, region, disk, health.
sort.direction requiredstringOne of: asc, desc.
created_at requiredstring (date-time)
updated_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the saved view.
Idempotency-KeyheaderstringOptional 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

NameTypeDescription
namestring
filtersobject
filters.labelstring
filters.regionstring
filters.node_idstring (uuid)UUIDv7
filters.phpstringOne of: 8.1, 8.2, 8.3, 8.4, 8.5.
filters.searchstring
filters.statusstringOne of: live, staging, provisioning, attention.
columnsarray of string
sortobject or null
sort.column requiredstringOne of: name, labels, php_version, wordpress_version, region, disk, health.
sort.direction requiredstringOne of: asc, desc.

Responses

StatusBodyDescription
200SavedViewSaved view
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
name requiredstring
filters requiredobject
filters.labelstring
filters.regionstring
filters.node_idstring (uuid)UUIDv7
filters.phpstringOne of: 8.1, 8.2, 8.3, 8.4, 8.5.
filters.searchstring
filters.statusstringOne of: live, staging, provisioning, attention.
columns requiredarray of string
sort requiredobject or null
sort.column requiredstringOne of: name, labels, php_version, wordpress_version, region, disk, health.
sort.direction requiredstringOne of: asc, desc.
created_at requiredstring (date-time)
updated_at requiredstring (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

NameInTypeDescription
id requiredpathstring (uuid)The id of the saved view.

Responses

StatusBodyDescription
204Deleted
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)