WorkspaceSpacePreference
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
PATCH |
/api/v1/organizations/{organization_id}/workspace_spaces/preferences |
update |
Updated workspace space preferences |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
updated, err := client.WorkspaceSpacePreference(nil).Update(map[string]any{"organization_id": "example", "preferences": []any{}}, nil)
if err != nil {
panic(err)
}
fmt.Println(updated)
Lua
Construct client as shown in the Lua setup, then call the operations:
local updated, err = client:WorkspaceSpacePreference():update({ organization_id = "example", preferences = {} })
PHP
Construct client as shown in the PHP setup, then call the operations:
$updated = $client->WorkspaceSpacePreference()->update(["organization_id" => "example", "preferences" => []]);
Python
Construct client as shown in the Python setup, then call the operations:
updated = client.WorkspaceSpacePreference().update({"organization_id": "example", "preferences": []})
Ruby
Construct client as shown in the Ruby setup, then call the operations:
updated = client.WorkspaceSpacePreference.update({ "organization_id" => "example", "preferences" => [] })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const updated = await client.WorkspaceSpacePreference().update({ organization_id: "example", preferences: [] })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
preferences |
array |
Yes | Preferences |
spaces |
array |
Yes | Spaces |
update
PATCH /api/v1/organizations/{organization_id}/workspace_spaces/preferences
Operation ID: preferences_api_v1_organization_workspace_spaces.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
preferences |
array of object |
Yes | |
preferences[].hidden |
boolean |
Yes | |
preferences[].position |
integer |
Yes | |
preferences[].space_public_id |
string |
Yes |
Responses
200: Updated workspace space preferences
application/json
| Property | Type | Required | Description |
|---|---|---|---|
spaces |
array of object |
Yes | |
spaces[].created_at |
string (date-time) |
Yes | |
spaces[].description |
string |
Yes | |
spaces[].hidden |
boolean |
Yes | |
spaces[].icon_name |
enum: book-open, boxes, briefcase-business, code-xml, file-text, folder, ... |
Yes | |
spaces[].id |
string |
Yes | |
spaces[].import_status |
enum: queued, running, succeeded, failed, canceled |
Yes | |
spaces[].name |
string |
Yes | |
spaces[].organization_id |
string |
Yes | |
spaces[].position |
integer |
Yes | |
spaces[].repository_id |
string |
Yes | |
spaces[].repository_slug |
string |
Yes | |
spaces[].slug |
string |
Yes | |
spaces[].status |
enum: active, archived |
Yes | |
spaces[].updated_at |
string (date-time) |
Yes |