Replace the secret names bound to a workspace
Replaces the whole binding (names: [] clears it); applies from the next exec/PTY start (running processes keep their environment). Every name must be a live secret this workspace may use (its project, its id, and allowed_tools including exec and pty), else 422 details.reason secret_not_available with details.names and nothing changes. A name equal to a key of the template version’s env or one of its text inputs is 422 env_collision (details.name;). Exactly the given names are bound (the version’s secret inputs join the binding only through open). Audited when the binding changes. 409 workspace_deleted.
Request
- Base URL: https://api.shardflux.dev
- URL: https://api.shardflux.dev/v1/workspaces/{workspace_id}/secrets
- Auth: HTTP bearer
Path parameters
UUIDv7, lowercase canonical form.
Request body
Response
Secret names bound to a workspace and their current status. Never values.
Changes
No recorded changes to this operation across all 1 revision of this API.