---
title: "PUT /api/collection/graph"
method: PUT
path: "/api/collection/graph"
tags: ["/api/collection"]
---

# PUT /api/collection/graph

`PUT /api/collection/graph`

Do a batch update of Collections Permissions by passing in a modified graph. Will overwrite parts of the graph that
  are present in the request, and leave the rest unchanged.

  If the `force` query parameter is `true`, a `revision` number is not required. The provided graph will be persisted
  as-is, and has the potential to clobber other writes that happened since the last read.

  If the `skip_graph` query parameter is `true`, it will only return the current revision, not the entire permissions
  graph.

## Query parameters

- `force` boolean, nullable, required
- `skip-graph` boolean, nullable, required

## Request body

- object
  - `groups` object, required
  - `namespace` string, nullable
  - `revision` integer, nullable — value must be an integer.

## Response `2XX`

Successful response

## Other responses

- `4XX` — Client error response
- `5XX` — Server error response

---

[API](https://skmtc.net/metabase/apis/metabase-api.md) · [All operations](https://skmtc.net/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/08b5a2bafb4f/schema)
