Update Workspace
PUThttps://cloud.agenta.ai/api/organizations/:org_id/workspaces/:workspace_id
Update Workspace
Request
Path Parameters
org_id Org Idrequired
workspace_id Workspace Idrequired
- application/json
Body
required
name Name (string)
description Description (string)
updated_at date-time
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
created_at date-time
Default value: 2024-05-15T13:56:52.061787
updated_at date-time
Default value: 2024-05-15T13:56:52.061801
id Id (string)required
name Name (string)required
description Description (string)
type Type (string)
organization Organization (string)required
members
object[]
{
"created_at": "2024-08-19T07:55:03.796Z",
"updated_at": "2024-08-19T07:55:03.796Z",
"id": "string",
"name": "string",
"description": "string",
"type": "string",
"organization": "string",
"members": [
{
"user": {},
"roles": [
{
"role_name": "owner",
"role_description": "string",
"permissions": [
"read_system"
]
}
]
}
]
}
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
curl -L -X PUT 'https://cloud.agenta.ai/api/organizations/:org_id/workspaces/:workspace_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"name": "string",
"description": "string",
"updated_at": "2024-08-19T07:55:03.475Z"
}'
ResponseClear