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

# Complete Calendar Event

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

## Request

- Base URL: `https://api.migma.ai`
- URL: `https://api.migma.ai/v1/projects/{projectId}/insights/events/{eventId}/complete`
- Auth: API key in header `Authorization`

Mark a campaign as sent so the calendar stops suggesting it. 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
- `eventId` string, required

## 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

[Operation history](https://skmtc.dev/migma/apis/migma-ai-api-v1/changes/v1/projects/:projectId/insights/events/:eventId/complete/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/2ce0e1e4d856?raw)
