Skip to content

Commit

Permalink
Clarify behavior of list operations when no results found (#26819)
Browse files Browse the repository at this point in the history
* clarify behavior of list operations when no results found

* Update website/content/api-docs/index.mdx

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>

---------

Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
  • Loading branch information
marcboudreau and schavis committed May 14, 2024
1 parent 469ecf0 commit aaf59a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/content/api-docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ $ curl \
The API documentation uses `LIST` as the HTTP verb, but you can still use `GET`
with the `?list=true` query string.

If the list result is an empty set, Vault responds with status code 404 and the following JSON:

```json
{"errors":[]}
```

To make an API with specific data in request body, issue a `POST`:

```text
Expand Down

0 comments on commit aaf59a7

Please sign in to comment.