---
title: "Update Collection"
method: PATCH
path: "/api/collections/{collection_id}"
tags: ["collections"]
---

# Update Collection

`PATCH /api/collections/{collection_id}`

## Path parameters

- `collection_id` string, uuid, required

## Headers

- `X-Workspace-Id` string, nullable

## Request body

- CollectionUpdate
  - `name` string, nullable
  - `icon` string, nullable
  - `color` string, nullable
  - `position` integer, nullable
  - `account_ids` string[], nullable
  - `wallet_ids` string[], nullable

## Response `200`

Successful Response

- CollectionRead
  - `name` string, required
  - `icon` string
  - `color` string
  - `position` integer
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `account_ids` string[]
  - `account_count` integer
  - `wallet_ids` string[]
  - `wallet_count` integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/usesecuro/apis/securo.md) · [All operations](https://skmtc.dev/usesecuro/apis/securo/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/usesecuro/securo/revisions/1df3dfa0c028/schema)
