Secrets

Stores a secret in a feature's copy

For trying the feature with - a key for a sandbox, say. The lambda's own secrets are not touched, and the copy is thrown away when the feature is merged.

put/lambdas/{privateKey}/features/{feature}/secrets/{name}

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/lambdas/{privateKey}/features/{feature}/secrets/{name}
  • Auth: none declared

Path parameters

privateKeystring required

The editor key of the lambda. Holding it is what allows the call.

featurestring required

The key of the feature, as key in the answer that started it

namestring required

Its name, as the code reads it: letters, digits and underscores, not starting with a digit. Case sensitive.

Request body

Valuestring

The value, up to 32 KB - sent once, and never shown again

Response

The secret, without its value

Namestring

What the code reads it by: Secret.Read("STRIPE_KEY")

Createdstring date-time

When it was first stored

Changedstring date-time

When its value was last replaced

Usedboolean

Whether the code reads it by that name

Changes

No recorded changes to this operation across all 1 revision of this API.