---
title: "Update a trigger key"
method: PATCH
path: "/api/jobs/{id}/api-keys/{keyId}"
tags: ["Trigger Keys"]
---

# Update a trigger key

`PATCH /api/jobs/{id}/api-keys/{keyId}`

Enable, disable, or rename a trigger key.

## Request body

- object
  - `enabled` boolean
  - `name` string

## Response `200`

Trigger key updated

- object
  - `success` boolean
  - `apiKey` TriggerKey
    - `id` string, uuid
    - `name` string
    - `start` string — Display prefix (e.g. sck_trigger_f1e2...)
    - `enabled` boolean
    - `jobId` string, uuid
    - `expiresAt` string, date-time, nullable
    - `lastRequest` string, date-time, nullable
    - `createdByName` string, nullable
    - `createdAt` string, date-time

## Other responses

- `401` — Authentication required or token invalid
- `404` — Resource not found

---

[API](https://skmtc.dev/supercheck-io/apis/supercheck-api.md) · [All operations](https://skmtc.dev/supercheck-io/apis/supercheck-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supercheck-io/supercheck-api/revisions/81782deccf0e/schema)
