Sandboxes

Set a workspace secret

Changed on

Store a secret that any member's sandbox can name in secrets: 201 for a new name, 200 when it replaces the value of a name your workspace holds. Only a workspace owner or admin can set one.

post/sandboxes/secrets

Request

  • Base URL
    https://api.hedra.com/v3
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Request body

namestring required

A workspace secret's name, which is also the environment variable each instance receives it as: uppercase letters, digits and underscores, not starting with a digit, at most 63 characters, and never starting SANDBOX_, which the sandbox reserves.

valuestring password required

The secret's value: 1 byte to 16 KiB of UTF-8. It is never returned.

Response

The workspace held the name; its value was replaced.

namestring required

The secret's name.

created_atstring date-time required

Changes