Recreate a secret in a store
PATCH {{fastly_url}}/resources/stores/secret/{{store_id}}/secrets
Recreate a secret based on the secret's name.
Returns an error if there is no existing secret with the same name.
The secret field must be Base64-encoded because a secret can contain binary data.
In the example below, the unencoded secret is Hello, world!
.
Authorization: API token with at least Engineer permissions.
Request Body
{"name"=>"my-secret", "secret"=>"SGVsbG8sIHdvcmxkIQ=="}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Host | string | ||
Content-Type | string | ||
Accept | string |