Delete one version (`delete`).
DELETE
/v1/versions/{path}
const url = 'https://ferritor.example.internal:7070/v1/versions/example?version=1';const options = {method: 'DELETE'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://ferritor.example.internal:7070/v1/versions/example?version=1'The others stay as they are; deleting the latest makes the newest live
one left the latest. 404 unless that version is live. Restorable until
purged. A route of its own, not a parameter of DELETE /v1/secrets/{path}: a server without it answers 405 rather than
deleting every version.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”path
required
string
A canonical secret path, slashes included (billing/db); its first segment is its namespace.
Query Parameters
Section titled “Query Parameters”version
required
integer format: int32
The version to delete, from 1.
Responses
Section titled “Responses”Deleted.
default
Section titled “default”An error: see error.code.
Media typeapplication/json
Every error’s body.
object
error
required
object
code
required
Match on this, never on the message.
string
message
required
For people; may change.
string
Example
{ "error": { "code": "invalid_argument" }}