---
title: "Add Calendar Event"
method: POST
path: "/v1/projects/{projectId}/insights/events"
tags: ["Projects/Brands"]
---

# Add Calendar Event

`POST /v1/projects/{projectId}/insights/events`

Put a campaign on this brand’s calendar. Requires an API key with project:write. Returns the whole calendar back, so a client never has to guess how the change reordered it. There is deliberately no edit endpoint — Migma’s calendar supports adding, removing and marking done, and nothing else.

## Path parameters

- `projectId` string, required

## Request body

- AddCalendarEventRequest
  - `title` string, required
  - `suggestedDate` string, required — YYYY-MM-DD.

## Response `200`

The calendar after the change

- object
  - `success` boolean, required
  - `data` object, nullable
    - `summary` string — One paragraph on the shape of the calendar as a whole.
    - `generatedAt` string, date-time
    - `suggestions` BrandSuggestion[], required
      - `id` string, required
      - `title` string, required — Short name for the email, e.g. "Labour Day tech sale email".
      - `description` string, required — One line on what it should say and why now.
      - `prompt` string, required — A ready-to-send brief — pass it straight to POST /v1/projects/emails/generate.
      - `priority` 'high' | 'medium' | 'low', required
      - `category` string — Short label for display, e.g. "Seasonal", "Promotion".
      - `suggestedDate` string, date — When it is worth sending, as YYYY-MM-DD. Results are ordered by this, soonest first, with undated suggestions last; anything already sent or in the past is omitted.
      - `daysUntil` integer — Days from today to suggestedDate.
    - `total` integer — How many upcoming campaigns exist in total, regardless of `limit`.
  - `error` string, nullable

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Resource not found

## Changes

- **2026-09-02** `e4d1d87bfcbe` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/migma/apis/migma-ai-api-v1/changes/v1/projects/:projectId/insights/events/post.md)

---

[API](https://skmtc.dev/migma/apis/migma-ai-api-v1.md) · [All operations](https://skmtc.dev/migma/apis/migma-ai-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/migma/apis/migma-ai-api-v1/revisions/e4d65fe55a0b?raw)
