---
title: "Update a collection"
method: PUT
path: "/v3/collections/{collection_uid}"
tags: ["Collections"]
---

# Update a collection

`PUT /v3/collections/{collection_uid}`

Update a collection's name, description, and/or query.<br><br>This endpoint does not cost credits to execute.

## Path parameters

- `collection_uid` string, required — The UID for the collection

## Query parameters

- `organization_id` string, uuid, required — The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information.

## Headers

- `X-Organization-ID` string, uuid — The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information. Note: The header parameter is supported for atypical use cases; we recommend always providing this field via the query parameter.

## Request body

- CrudUpdateInputBody
  - `description` string — description of the collection
  - `name` string, required — name of the collection
  - `query` string, required — query string to search upon to build the collection

## Response `200`

OK

- ResponseEnvelopeCollection
  - `result` Collection
    - `added_assets_24_hours` integer, required
    - `create_time` string, date-time, required
    - `created_by` string, uuid — The ID of a Censys user who created the collection.
    - `description` string, required
    - `id` string, required
    - `name` string, required
    - `query` string, required
    - `removed_assets_24_hours` integer, required
    - `status` 'unspecified' | 'populating' | 'active' | 'paused' | 'archived', required
    - `status_reason` 'unspecified' | 'not_enough_credits' | 'not_entitled' | 'too_many_assets' | 'manual' | 'query_changed' | 'initial', nullable, required
    - `total_assets` integer, required

## Other responses

- `400` — Bad request
- `401` — Request does not contain a valid Authorization token
- `403` — User does not have permission to access this data
- `404` — No collection found
- `412` — Collection is paused or archived
- `500` — Internal server error

---

[API](https://skmtc.net/censys/apis/censys-platform-api.md) · [All operations](https://skmtc.net/censys/apis/censys-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/censys/censys-platform-api/versions/261c916bf05b/schema)
