---
title: "Update endpoint"
method: PATCH
path: "/dashboard/endpoints"
tags: ["Endpoint"]
---

# Update endpoint

`PATCH /dashboard/endpoints`

## Request

- Base URL: `https://blockreq.com/api`
- URL: `https://blockreq.com/api/dashboard/endpoints`
- Auth: HTTP bearer

## Request body

- object
  - `endpointId` string, required
  - `name` string
  - `label` string, nullable
  - `tags` string[], nullable
  - `allowedChains` string[], nullable
  - `allowedMethods` string[], nullable
  - `allowedIps` string[], nullable
  - `expiresAt` string, nullable

## Response `200`

Updated endpoint

- object
  - `code` number, required
  - `ok` boolean, required
  - `data` object, required
    - `endpoint` object, required
      - `endpointId` string, required
      - `apiKey` string, required
      - `endpoint` string, required
      - `chain` string, required
      - `label` string, nullable, required
      - `tags` string[], nullable, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `500`: Internal Error

---

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