---
title: "Create or update a collection."
method: PUT
path: "/collection"
---

# Create or update a collection.

`PUT /collection`

## Request

- Base URL: `https://app.chloris.earth/api`
- URL: `https://app.chloris.earth/api/collection`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/chloris/apis/chloris-platform-api/docs/collection/put.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- CollectionEntry
  - `organizationId` string: organization ID
  - `reportingUnitId` string: reporting unit UUID
  - `label` string: label
  - `description` string: This is a description of a reportingUnit
  - `reportingUnitIds` string[]: reporting unit uuids of the collection items

## Response `200`

Success

- CollectionEntry
  - `organizationId` string: organization ID
  - `reportingUnitId` string: reporting unit UUID
  - `label` string: label
  - `description` string: This is a description of a reportingUnit
  - `reportingUnitIds` string[]: reporting unit uuids of the collection items

## Other responses

- `403`: Forbidden

---

[API](https://skmtc.dev/chloris/apis/chloris-platform-api.md) - [All operations](https://skmtc.dev/chloris/apis/chloris-platform-api/llms.txt) - [OpenAPI document](https://skmtc.dev/chloris/apis/chloris-platform-api/revisions/e675ad2bd035?raw)
