---
title: "Update sensitive trace endpoint"
method: PATCH
path: "/sensitive-trace-endpoints/{endpoint_id}"
tags: ["Sensitive Trace Endpoints"]
---

# Update sensitive trace endpoint

`PATCH /sensitive-trace-endpoints/{endpoint_id}`

Update an existing sensitive trace endpoint.

## Path parameters

- `endpoint_id` string, required

## Request body

- UpdateSensitiveTraceEndpointRequest
  - `sensitive_trace_endpoint` UpdateSensitiveTraceEndpointOptions, required
    - `name` string — Optional name of the sensitive trace endpoint.
    - `description` string — Optional description of the sensitive trace endpoint.
    - `url` string — Optional URL to send the sensitive trace to.
    - `header_template` string — Optional template for the headers to send with the sensitive trace. If left empty default headers will be sent.
    - `secret` string — Optional secret to authenticate the sensitive trace endpoint.
    - `body_template` string — Optional template for the body to send with the sensitive trace. If left empty default body will be sent.

## Response `200`

OK

- object
  - `status` 'success', required
  - `data` UpdateSensitiveTraceEndpointResponse, required
    - `sensitive_trace_endpoint` SensitiveTraceEndpointResource, required
      - `id` string, required
      - `name` string, required
      - `description` string
      - `url` string, required
      - `header_template` string
      - `body_template` string
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
  - `message` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/prequel/apis/prequel-data-export.md) · [All operations](https://skmtc.dev/prequel/apis/prequel-data-export/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prequel/prequel-data-export/revisions/09c662a871f8/schema)
