v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-09-27192307552.2 KB
workspaces

Create Secret

Creates a secret.

Args: workspace_name_or_id: Name or ID of the workspace. secret: Secret to create.

Returns: The created secret.

Raises: IllegalOperationError: If the workspace specified in the secret does not match the current workspace.

post/api/v1/workspaces/{workspace_name_or_id}/secrets

Path parameters

string required
OR
string uuid required

Request body

userstring uuid required
workspacestring uuid required
namestring required
scope'workspace' | 'user'

Enum for the scope of a secret.

valuesobject

Response

Successful Response

resourcesSecretResponseResources

Class for all resource models associated with the secret entity.

idstring uuid required
permission_deniedboolean
namestring required