# Update Catalog Workspace Bindings

Launch stage: GA

`PATCH /api/2.1/unity-catalog/workspace-bindings/catalogs/{catalog_name}`

Updates workspace bindings of the catalog.
 The caller must be a metastore admin or an owner of the catalog.

API scopes: unity-catalog

## Path parameters

- `catalog_name` (string, optional)
  The name of the catalog.

## Request body

- `assign_workspaces` (array of int64, optional)
  A list of workspace IDs.
- `unassign_workspaces` (array of int64, optional)
  A list of workspace IDs.

## Returns

- `workspaces` (array of int64, optional)
  A list of workspace IDs

## Response

```json
{
  "workspaces": [
    0
  ]
}
```

