Create or recreate a secret in a store

PUT {{fastly_url}}/resources/stores/secret/{{store_id}}/secrets

Create or recreate a secret based on the secret's name. The response object's recreated field will be true if the secret was recreated. 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

KeyDatatypeRequiredDescription
Hoststring
Content-Typestring
Acceptstring