Vai al contenuto principale
PATCH
/
workspaces
/
{workspaceId}
Aggiorna un workspace
curl --request PATCH \
  --url https://api.altostrat.io/workspaces/{workspaceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Workspace di ACME Corp.",
  "description": "Workspace principale per tutte le operazioni aziendali."
}'
{
  "id": "ws_a1b2c3d4e5f6g7h8",
  "name": "ACME Corporation",
  "description": "Workspace primario per tutti i progetti ACME.",
  "billing_mode": "pooled",
  "pooled_seat_limit": 100,
  "archived": false,
  "created_at": "2025-10-29T00:40:06.000000Z",
  "updated_at": "2025-10-29T00:40:06.000000Z",
  "archived_at": null
}

Authorizations

Authorization
string
header
required

Inserisci il tuo JWT nel formato: Bearer {token}

Path Parameters

workspaceId
string
required

L'ID del workspace.

Example:

"ws_a1b2c3d4e5f6g7h8"

Body

application/json
name
string

Il nuovo nome per il workspace. Massimo 50 caratteri.

Example:

"Workspace di ACME Corp."

description
string | null

La nuova descrizione per il workspace. Massimo 200 caratteri.

Example:

"Workspace principale per tutte le operazioni aziendali."

Response

L'oggetto workspace aggiornato.

id
string

Identificatore univoco per il workspace, con prefisso ws_.

Example:

"ws_a1b2c3d4e5f6g7h8"

name
string

Il nome del workspace.

Example:

"ACME Corporation"

description
string | null

Una descrizione opzionale per il workspace.

Example:

"Workspace primario per tutti i progetti ACME."

billing_mode
enum<string>

La modalità di fatturazione per il workspace. Determina come vengono gestiti gli abbonamenti e l'utilizzo.

Opzioni disponibili:
single,
assigned,
pooled
Example:

"pooled"

pooled_seat_limit
integer | null

Il numero totale di postazioni disponibili in modalità di fatturazione 'pooled'. È nullo per le altre modalità.

Example:

100

archived
boolean

Indica se il workspace è archiviato.

Example:

false

created_at
string<date-time>

La data e ora di creazione del workspace.

Example:

"2025-10-29T00:40:06.000000Z"

updated_at
string<date-time>

La data e ora dell'ultimo aggiornamento del workspace.

Example:

"2025-10-29T00:40:06.000000Z"

archived_at
string<date-time> | null

La data e ora di archiviazione del workspace.

Example:

null