---
title: "Link a calendar event, or one occurrence of it, to projects (replaces that link's projects)"
method: PUT
path: "/day-plan/event-project-links"
tags: ["day-plan"]
---

# Link a calendar event, or one occurrence of it, to projects (replaces that link's projects)

`PUT /day-plan/event-project-links`

## Request

- Base URL: `https://api.focusbear.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.focusbear.io/day-plan/event-project-links`
- Auth: HTTP bearer

## Request body

- UpsertEventProjectLinkDto
  - `event_key` string, required: The client key the link is stored under, e.g. series:<iCalUID> or event:<id>
  - `occurrence_date` string, nullable: YYYY-MM-DD: this occurrence only. Absent or null: the whole event, every occurrence of a series
  - `alias_keys` string[]: Other keys the same event is known by on the user's devices
  - `project_ids` string[], required: Project ids in the user order. Empty on an occurrence: no projects that day, whatever the series has

## Response `200`

- EventProjectLinkResponseDto
  - `event_key` string, required
  - `alias_keys` string[], required
  - `occurrence_date` string, nullable, required
  - `project_ids` string[], required
  - `created_at` string
  - `updated_at` string

---

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