---
title: "Update Logging Destination"
method: POST
path: "/v2/monitoring/sinks/destinations/{destination_uuid}"
tags: ["DigitalOcean-public.v2-new_Monitoring"]
---

# Update Logging Destination

`POST /v2/monitoring/sinks/destinations/{destination_uuid}`

To update the details of a destination, send a PATCH request to `/v2/monitoring/sinks/destinations/${destination_uuid}`.

## Path parameters

- `destination_uuid` string, required

## Request body

- DestinationRequest
  - `name` string — destination name
  - `type` 'opensearch_dbaas' | 'opensearch_ext', required — The destination type. `opensearch_dbaas` for a DigitalOcean managed OpenSearch cluster or `opensearch_ext` for an externally managed one.
  - `config` OpensearchConfigRequest, required
    - `credentials` object — Credentials for an OpenSearch cluster user. Optional if `cluster_uuid` is passed.
      - `username` string
      - `password` string
    - `endpoint` string, required — host of the OpenSearch cluster
    - `cluster_uuid` string — A unique identifier for a managed OpenSearch cluster.
    - `cluster_name` string — Name of a managed OpenSearch cluster.
    - `index_name` string — OpenSearch index to send logs to.
    - `retention_days` integer — Number of days to retain logs in an OpenSearch cluster.

## Response `204`

The action was successful and the response body is empty.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

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