Remove User From Workspace
DELETEhttps://cloud.agenta.ai/api/workspaces/:workspace_id/users
Remove a user from a workspace.
Parameters:
- payload (UserRole): The payload containing the user email and organization ID.
- workspace_id (str): The ID of the workspace.
- request (Request): The FastAPI request object.
Returns:
- WorkspaceResponse: The updated workspace.
Raises:
- HTTPException: If the user does not have permission to perform this action.
- HTTPException: If there is an error during the removal process.
Request
Path Parameters
workspace_id Workspace Idrequired
Query Parameters
org_id Org Idrequired
email Emailrequired
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
created_at Created At (string)
Default value: 2024-11-20 07:07:31.664723+00:00
updated_at Updated At (string)
Default value: 2024-11-20 07:07:31.664833+00:00
id Id (string)required
name Name (string)required
description
object
type
object
required
organization Organization (string)required
members
object
{
"created_at": "2024-11-20 07:07:31.664723+00:00",
"updated_at": "2024-11-20 07:07:31.664833+00:00",
"id": "string",
"name": "string",
"description": "string",
"type": "string",
"organization": "string",
"members": [
null
]
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
ResponseClear