---
title: "Update Trigger"
method: PUT
path: "/api/agents/{agent_id}/triggers/{trigger_id}"
tags: ["triggers"]
---

# Update Trigger

`PUT /api/agents/{agent_id}/triggers/{trigger_id}`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/{agent_id}/triggers/{trigger_id}`
- Auth: HTTP bearer

## Path parameters

- `agent_id` string, required
- `trigger_id` string, required

## Request body

- TriggerUpdate
  - `config` object, nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- TriggerResponse
  - `id` string, required
  - `agentId` string, required
  - `type` string, required
  - `config` object, required
  - `enabled` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
