Edit workspace name, description and instructions
PATCH/v1/agent/workspaces/:workspaceId
API keys may edit only workspaces owned by their exact application. The name is required. All strings are trimmed; omitted, null or empty description and instructions clear those fields. Application, organization, model and audit fields cannot be changed through this endpoint.
Request
Responses
- 200
- 400
- 401
- 404
Updated workspace.
INVALID_WORKSPACE_ID, INVALID_WORKSPACE_NAME, INVALID_WORKSPACE_DESCRIPTION or INVALID_WORKSPACE_INSTRUCTIONS.
Missing or invalid credentials, including revoked or expired API keys or inactive or deleted applications.
AGENT_WORKSPACE_NOT_FOUND for an unknown, deleted or inaccessible workspace, including a workspace owned by another API-key application.