> ## Documentation Index
> Fetch the complete documentation index at: https://sequinstream.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update HTTP endpoint

Updates an existing HTTP endpoint.

## Request fields

The modifiable fields depend on the type of HTTP endpoint.

<ParamField path="endpoint_id_or_name" type="string" required>
  The ID or name of the HTTP endpoint to update
</ParamField>

The request body depends on the type of endpoint being updated:

<Expandable title="HTTP endpoint">
  <ParamField body="name" type="string">
    The name of the HTTP endpoint
  </ParamField>

  <ParamField body="url" type="string">
    The URL of the HTTP endpoint
  </ParamField>

  <ParamField body="headers" type="object">
    Headers to include with requests
  </ParamField>

  <ParamField body="encrypted_headers" type="object">
    Headers that should be encrypted
  </ParamField>
</Expandable>

<Expandable title="webhook.site endpoint">
  <ParamField body="name" type="string">
    The name of the HTTP endpoint
  </ParamField>
</Expandable>

<Expandable title="local endpoint">
  <ParamField body="name" type="string">
    The name of the HTTP endpoint
  </ParamField>

  <ParamField body="path" type="string">
    The path for the local endpoint
  </ParamField>

  <ParamField body="headers" type="object">
    Headers to include with requests
  </ParamField>

  <ParamField body="encrypted_headers" type="object">
    Headers that should be encrypted
  </ParamField>
</Expandable>

## Response fields

The response is one of the following:

<Expandable title="HTTP endpoint">
  <ResponseField name="id" type="string">
    The unique identifier of the HTTP endpoint
  </ResponseField>

  <ResponseField name="name" type="string">
    The name of the HTTP endpoint
  </ResponseField>

  <ResponseField name="url" type="string">
    The URL of the HTTP endpoint
  </ResponseField>

  <ResponseField name="headers" type="object">
    Headers to include with requests
  </ResponseField>

  <ResponseField name="encrypted_headers" type="string">
    Encrypted headers information
  </ResponseField>
</Expandable>

<Expandable title="webhook.site endpoint">
  <ResponseField name="id" type="string">
    The unique identifier of the HTTP endpoint
  </ResponseField>

  <ResponseField name="name" type="string">
    The name of the HTTP endpoint
  </ResponseField>

  <ResponseField name="webhook.site" type="boolean">
    Indicates this is a webhook.site endpoint
  </ResponseField>
</Expandable>

<Expandable title="local endpoint">
  <ResponseField name="id" type="string">
    The unique identifier of the HTTP endpoint
  </ResponseField>

  <ResponseField name="name" type="string">
    The name of the HTTP endpoint
  </ResponseField>

  <ResponseField name="local" type="boolean">
    Indicates this is a local endpoint
  </ResponseField>

  <ResponseField name="path" type="string">
    The path for the local endpoint
  </ResponseField>

  <ResponseField name="headers" type="object">
    Headers to include with requests
  </ResponseField>

  <ResponseField name="encrypted_headers" type="string">
    Encrypted headers information
  </ResponseField>
</Expandable>

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://api.sequinstream.com/api/destinations/http_endpoints/my-endpoint" \
    -H "Authorization: Bearer YOUR_API_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"headers": {"house": "fremen"}}'
  ```
</RequestExample>

<ResponseExample>
  ```json Regular HTTP Endpoint theme={null}
  {
    "id": "7c87ba76-c13c-4a87-bfff-0f1ba73f33a0",
    "name": "my-endpoint",
    "url": "https://dune.com/sandworms",
    "headers": {
      "house": "atreides"
    },
    "encrypted_headers": "(0 encrypted header(s)) - sha256sum: b4a8f200"
  }
  ```

  ```json Webhook.site Endpoint theme={null}
  {
    "id": "6ed248a4-2e1e-4aa2-ab0b-1f7383ad974b",
    "name": "my-webhook-site-endpoint",
    "webhook.site": true
  }
  ```

  ```json Local Endpoint theme={null}
  {
    "id": "0d993573-a4aa-42e4-baec-2efcac13ce6a",
    "local": true,
    "name": "my-local-endpoint",
    "path": "/my/path",
    "headers": {},
    "encrypted_headers": "(0 encrypted header(s)) - sha256sum: b4a8f200"
  }
  ```
</ResponseExample>
