Actualizar workspace
curl --request PUT \
--url https://api.vertracloud.app/v1/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', description: '<string>'})
};
fetch('https://api.vertracloud.app/v1/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/workspaces/{id}"
payload = {
"name": "<string>",
"description": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/workspaces/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Workspaces
Actualizar workspace
Actualiza el nombre o la descripción de un workspace. Solo el propietario.
PUT
/
v1
/
workspaces
/
{id}
Actualizar workspace
curl --request PUT \
--url https://api.vertracloud.app/v1/workspaces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', description: '<string>'})
};
fetch('https://api.vertracloud.app/v1/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.vertracloud.app/v1/workspaces/{id}"
payload = {
"name": "<string>",
"description": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vertracloud.app/v1/workspaces/{id}"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}Solo el propietario del workspace puede llamar a esto: no es un permiso, se comprueba directamente
owner_id.
Una clave de API necesita el scope workspaces:write. Se rechaza mientras el plan del propietario esté congelado
(vencido o degradado por debajo de Enterprise).
Ruta
string
requerido
ID del workspace.
Body
Mismos campos que Crear workspace, todos opcionales: al menos uno debe estar presente.string
De 1 a 50 caracteres.
string
Hasta 200 caracteres.
Respuesta
Misma forma que Obtener workspace.Errores
| Estado | Código | Cuándo |
|---|---|---|
| 400 | VALIDATION_ERROR | No se envió ningún campo. |
| 403 | WORKSPACE_OWNER_ONLY | Quien llama no es el propietario. |
| 403 | PLAN_RESTRICTED_FEATURE | El plan del propietario está congelado (vencido o por debajo de Enterprise). |
| 404 | WORKSPACE_NOT_FOUND | El workspace no existe o está eliminado. |
| 409 | WORKSPACE_NAME_ALREADY_EXISTS | Otro workspace activo tuyo ya tiene este nombre. |
Última modificación el 28 de octubre de 2026