---
title: "Update a data collection"
method: PATCH
path: "/data-collections/{id}"
tags: ["Data collections"]
---

# Update a data collection

`PATCH /data-collections/{id}`

## Request

- Base URL: `https://api.flogpt.com/api/v1`
- URL: `https://api.flogpt.com/api/v1/data-collections/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

A collection owned by an integration (`readOnly: true`, e.g. Shopify)
cannot be edited and returns `400 read_only_collection`.

## Request body

- ResourceInput

## Response `200`

Updated data collection

## Other responses

- `400`: The request is invalid.
- `404`: The resource does not exist in the API key's organization.

---

[API](https://skmtc.dev/flogpt/apis/flogpt-organization-api.md) · [All operations](https://skmtc.dev/flogpt/apis/flogpt-organization-api/llms.txt) · [OpenAPI document](https://skmtc.dev/flogpt/apis/flogpt-organization-api/revisions/c3a6cff76797?raw)
