Update cohort
Updates a cohort’s name or description.
PUT
api:manage-patients
All fields are optional; only supplied fields are changed.
Parameters
Olira-assigned cohort id.
New display name (1–200 characters); must be unique per organization.
New description.
Returns
Cohort
Cohort id.
Updated name.
Updated description.
Enrolled patient ids (unchanged).
ISO 8601 updated timestamp.
Raises
| Exception | When |
|---|---|
AuthError | HTTP 401 or 403 — invalid API key or insufficient OAuth scope for this endpoint. |
ValidationError | HTTP 400, 404, or 422 — malformed JSON, unknown patient, or validation failure (message includes response excerpt). |
ServerError | HTTP 409 (e.g. conflicting external identifier) or repeated 5xx after retries; includes status_code when applicable. |
RateLimitError | HTTP 429 — rate limited; check retry_after (seconds). |
NetworkError | Connection timeout, DNS failure, or read error after retries. |

