---
title: "Create or update endpoint"
method: POST
path: "/domain/endpoint"
tags: ["Endpoints"]
---

# Create or update endpoint

`POST /domain/endpoint`

Create or update endpoint

## Request body

- DomainEndpointData
  - `path` string
  - `data` object
    - `method` 'GET' | 'POST' | 'PUT' | 'DELETE'
    - `componentId` string
  - `agentId` string
  - `domainName` string

## Response `200`

successful operation

- ResponseMessage
  - `message` string

## Other responses

- `400` — Invalid endpoint data

---

[API](https://skmtc.net/smythos/apis/smyth-api.md) · [All operations](https://skmtc.net/smythos/apis/smyth-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smythos/smyth-api/revisions/1475e078fb4a/schema)
