---
title: "PUT /api/timeline/{id}"
method: PUT
path: "/api/timeline/{id}"
tags: ["/api/timeline"]
---

# PUT /api/timeline/{id}

`PUT /api/timeline/{id}`

Update the [[Timeline]] with `id`. Returns the timeline without events. Archiving a timeline will archive all of the
  events in that timeline.

## Path parameters

- `id` integer, required

## Request body

- object
  - `archived` boolean, nullable
  - `collection_id` integer, nullable — value must be an integer greater than zero.
  - `default` boolean, nullable
  - `description` string, nullable
  - `icon` 'star' | 'cake' | 'mail' | 'warning' | 'bell' | 'cloud', nullable
  - `name` string, nullable

## 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/versions/08b5a2bafb4f/schema)
