---
title: "Update a careplan activity"
method: PATCH
path: "/careplan-activity/{id}"
tags: ["careplan"]
---

# Update a careplan activity

`PATCH /careplan-activity/{id}`

## Request

- Base URL: `https://api.mijnziekenhuis.be` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mijnziekenhuis.be/careplan-activity/{id}`
- Auth: HTTP bearer

Updates careplan activity fields. When a hospital reschedules an encounter in Synops, call this endpoint for each related signable document activity to shift its deadlines (step 2 of 2, after `PATCH /encounter/:id`). Update `endAt`, `activateAt`, and `remindAt` together — these are all derived from the encounter date and must stay consistent. Related activities are discoverable via `GET /careplan-activity?trigger=<encounter.trigger>&type=Message`.

## Path parameters

- `id` number, required

## Request body

- UpdateCareplanActivityInput
  - `status` 'proposed' | 'scheduled' | 'started' | 'cancelled' | 'completed' | 'expired' | 'deleted'
  - `transition` string
  - `transitionCheck` string
  - `display` string
  - `trigger` string
  - `plannedAt` string
  - `endAt` string: ISO 8601 datetime. Deadline after which the activity expires. When rescheduling an encounter, update this alongside activateAt and remindAt.
  - `activateAt` string: ISO 8601 datetime. When the activity becomes interactive to the subject.
  - `remindAt` string: ISO 8601 datetime. When a reminder is sent to the subject.
  - `startedAt` string
  - `repeat` object
  - `reminders` object[]
  - `meta` object
  - `contentSlug` string
  - `questionnaireSlug` string
  - `questionnaireId` number
  - `questionnaireResponseId` number
  - `appointmentId` number

## Response `200`

- object

---

[API](https://skmtc.dev/mijnziekenhuis/apis/healthblocks.md) - [All operations](https://skmtc.dev/mijnziekenhuis/apis/healthblocks/llms.txt) - [OpenAPI document](https://skmtc.dev/mijnziekenhuis/apis/healthblocks/revisions/2da585b2afd2?raw)
