---
title: "Edit the endpoint specified by the id."
method: PATCH
path: "/1.0/endpoints/{id}"
tags: ["Endpoint"]
---

# Edit the endpoint specified by the id.

`PATCH /1.0/endpoints/{id}`

## Request

- Base URL: `https://customer-api.datadome.co`
- URL: `https://customer-api.datadome.co/1.0/endpoints/{id}`
- Auth: API key in header `x-api-key`

## Path parameters

- `id` string, required

## Request body

- EndpointUpdate: Endpoint Details
  - `name` string
  - `description` string, nullable
  - `positionBefore` string, nullable
  - `trafficUsage` 'Login' | 'Rss' | 'Form' | 'General' | 'Payment' | 'Cart' | 'Forms' | 'Account Creation'
  - `source` 'Web Browser' | 'Api' | 'Mobile App' | 'Agentic Protocol'
  - `cookieSameSite` 'Lax' | 'None' | 'Strict': DataDome's cookie SameSite parameter for the endpoint.
  - `domain` string, nullable
  - `pathInclusion` string, nullable
  - `pathExclusion` string, nullable
  - `userAgentInclusion` string, nullable
  - `responseFormat` 'json' | 'html' | 'auto'
  - `detectionEnabled` boolean: The detection status for the endpoint.
  - `protectionEnabled` boolean: The protection status for the endpoint.
  - `query` string, nullable

## Response `200`

Endpoint resource updated

- EndpointRead: Endpoint Details
  - `name` string
  - `description` string, nullable
  - `positionBefore` string, nullable
  - `trafficUsage` 'Login' | 'Rss' | 'Form' | 'General' | 'Payment' | 'Cart' | 'Forms' | 'Account Creation'
  - `source` 'Web Browser' | 'Api' | 'Mobile App' | 'Agentic Protocol'
  - `cookieSameSite` 'Lax' | 'None' | 'Strict': DataDome's cookie SameSite parameter for the endpoint.
  - `domain` string, nullable
  - `pathInclusion` string, nullable
  - `pathExclusion` string, nullable
  - `userAgentInclusion` string, nullable
  - `responseFormat` 'json' | 'html' | 'auto'
  - `detectionEnabled` boolean: The detection status for the endpoint.
  - `protectionEnabled` boolean: The protection status for the endpoint.
  - `query` string, nullable

## Other responses

- `400`: Invalid input
- `403`: Forbidden
- `404`: Resource not found
- `422`: Unprocessable entity

---

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