---
title: "Update Destination"
method: PUT
path: "/organizations/{orgId}/integrationdestinations/webhooks/{id}"
tags: ["Integrations"]
---

# Update Destination

`PUT /organizations/{orgId}/integrationdestinations/webhooks/{id}`

Update a destination to be used for a webhook.

## Path parameters

- `orgId` string, required
- `id` string, required

## Request body

- WebhookDestinationRequest
  - `url` string, required — The URL to which the webhook requests will be sent.
  - `credentials` object, required — Request representing a credential set for m3ter request signing
    - `version` integer — The version number of the entity: - **Create entity:** Not valid for initial insertion of new entity - *do not use for Create*. On initial Create, version is set at 1 and listed in the response. - **Update Entity:** On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
    - `empty` boolean — A flag to indicate whether the credentials are empty. * TRUE - empty credentials. * FALSE - credential details required.
    - `type` 'M3TER_SIGNED_REQUEST', required — Specifies the authorization type. For this schema, it is exclusively set to M3TER_SIGNED_REQUEST.
    - `name` string — The name of the credentials
    - `destination` 'WEBHOOK' | 'NETSUITE' | 'STRIPE' | 'STRIPE_TEST' | 'AWS' | 'PADDLE' | 'PADDLE_SANDBOX' | 'SALESFORCE' | 'XERO' | 'CHARGEBEE' | 'QUICKBOOKS' | 'QUICKBOOKS_SANDBOX' | 'M3TER'
    - `apiKey` string, required — The API key provided by m3ter. This key is part of the credential set required for signing requests and authenticating with m3ter services.
    - `secret` string, required — The secret associated with the API key. This secret is used in conjunction with the API key to generate a signature for secure authentication.
  - `version` integer — The version number of the entity: - **Create entity:** Not valid for initial insertion of new entity - *do not use for Create*. On initial Create, version is set at 1 and listed in the response. - **Update Entity:** On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.
  - `name` string, required
  - `description` string, required
  - `code` string
  - `active` boolean

## Response `200`

Returns the Destination Update Request

- WebhookDestinationResponse
  - `url` string — The URL to which webhook requests are sent.
  - `credentials` object — Response representing a credential set for m3ter request signing
    - `apiKey` string — The API key provided by m3ter. This key is part of the credential set required for signing requests and authenticating with m3ter services.
    - `secret` string — The secret associated with the API key. This secret is used in conjunction with the API key to generate a signature for secure authentication.
    - `id` string, required — The UUID of the entity.
    - `version` integer — The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.
    - `dtCreated` string, date-time — The DateTime when this item was created *(in ISO-8601 format)*.
    - `dtLastModified` string, date-time — The DateTime when this item was last modified *(in ISO-8601 format)*.
    - `createdBy` string — The ID of the user who created this item.
    - `lastModifiedBy` string — The ID of the user who last modified this item.
    - `type` string, required — the type of credentials
    - `destination` string, required — the system the integration is for
    - `destinationId` string — the destinationId the integration is for
    - `name` string — the name of the credentials
  - `id` string, required — The UUID of the entity.
  - `version` integer — The version number: - **Create:** On initial Create to insert a new entity, the version is set at 1 in the response. - **Update:** On successful Update, the version is incremented by 1 in the response.
  - `dtCreated` string, date-time — The DateTime when this item was created *(in ISO-8601 format)*.
  - `dtLastModified` string, date-time — The DateTime when this item was last modified *(in ISO-8601 format)*.
  - `createdBy` string — The ID of the user who created this item.
  - `lastModifiedBy` string — The ID of the user who last modified this item.
  - `name` string
  - `description` string
  - `code` string
  - `active` boolean

## Other responses

- `4XX` — Error message
- `5XX` — Error message

---

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