---
title: "Upsert Task Notifications"
method: PUT
path: "/api/v1/tasks/{task_id}/notifications"
tags: ["tasks"]
---

# Upsert Task Notifications

`PUT /api/v1/tasks/{task_id}/notifications`

## Request

- Base URL: `https://api.komos.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.komos.ai/api/v1/tasks/{task_id}/notifications`
- Auth: none declared

## Path parameters

- `task_id` string, uuid, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- NotificationSettingsBody
  - `notify_on_success` boolean, nullable
  - `notify_on_failure` boolean, nullable
  - `include_outputs` boolean, nullable
  - `include_error` boolean, nullable
  - `recipients` NotificationRecipient[], nullable
    - `type` 'user' | 'email' | 'requester' | 'creator', required
    - `value` string, nullable
  - `last_revision` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/komos/apis/komos-backend.md) · [All operations](https://skmtc.dev/komos/apis/komos-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/komos/apis/komos-backend/revisions/f10e153fab38?raw)
