Stashbase
Secrets (env. scope)

Bulk update

Update multiple secrets.

PATCH
/v1/environment/secrets/

Update multiple secrets.

Request Body

application/json

The list of secrets to update

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/environment/secrets/" \  -H "Content-Type: application/json" \  -d '[    {      "name": "string"    }  ]'
{
  "updated_count": 2,
  "not_found_secrets": [
    "FEATURE_FLAG_1",
    "FEATURE_FLAG_2"
  ]
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {
      "property1": null,
      "property2": null
    }
  }
}