---
title: "Update a conversion destination"
method: PATCH
path: "/v1/ads/conversions/destinations/{destinationId}"
tags: ["Conversions"]
---

# Update a conversion destination

`PATCH /v1/ads/conversions/destinations/{destinationId}`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/ads/conversions/destinations/{destinationId}`
- Auth: HTTP bearer

Changes a LinkedIn conversion rule's name, value, attribution windows, or turns it on or off.

Partial-update a conversion rule. LinkedIn-only today. Whitelisted
fields: `name`, `enabled`, attribution windows, `valueType`, `value`,
`attributionType`. The rule's `type` and parent ad account are
intentionally not exposed for update. Recreate the rule if those
need to change.

## Path parameters

- `destinationId` string, required

## Request body

- object: At least one mutable field beyond `adAccountId` is required; the route returns 400 if no patch fields are provided.
  - `accountId` string, required: The connected ads account (SocialAccount ID).
  - `adAccountId` string, required
  - `name` string
  - `enabled` boolean: Setting `false` is equivalent to calling DELETE: the rule will appear as `inactive` afterwards.
  - `attributionType` 'LAST_TOUCH_BY_CAMPAIGN' | 'LAST_TOUCH_BY_CONVERSION'
  - `postClickAttributionWindowSize` 1 | 7 | 30 | 90 | 365: 365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.
  - `viewThroughAttributionWindowSize` 1 | 7 | 30 | 90 | 365: 365 only allowed for LEAD, PURCHASE, ADD_TO_CART, QUALIFIED_LEAD, SUBMIT_APPLICATION rule types.
  - `valueType` 'DYNAMIC' | 'FIXED' | 'NO_VALUE'
  - `value` object: Used when `valueType=FIXED`.
    - `currencyCode` string: ISO 4217.
    - `amount` string: Decimal string (e.g. "49.99").

## Response `200`

Destination updated (re-fetched canonical state)

- object
  - `platform` 'linkedinads'
  - `destination` ConversionDestination: A discoverable conversion destination on an ad platform: a Meta pixel, Google conversion action, or LinkedIn conversion rule. Returned by `listConversionDestinations`, `getConversionDestination`, `createConversionDestination`, and `updateConversionDestination`.
    - `id` string, required: Platform-native identifier. Pass back as `destinationId` on event send and as the path segment on CRUD endpoints.
    - `name` string, required
    - `type` string: Present when the platform locks the event type/category to the destination (Google conversion actions, LinkedIn conversion rules). Absent for Meta pixels (which accept any event name per request).
    - `status` 'active' | 'inactive': For LinkedIn, `inactive` means the rule is soft-deleted (`enabled: false`).
    - `adAccountId` string: Set by adapters whose destinations are scoped to a specific ad account (LinkedIn). Pass back on subsequent CRUD calls to identify the parent ad account.

## Other responses

- `400`: Invalid body or LinkedIn validation failure.
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `403`: Ads add-on or LinkedIn reconnect required. Also returned with code `ad_account_not_selected` when the connection has selected ad accounts and the targeted ad account is not among them. `details` carries `accountId`, `adAccountId` and `selectedAdAccountIds`. Fix: add the ad account to the selection (GET /v1/connect/{platform}/ads with adAccountIds, which replaces the selection), or use a connection that has it selected.
- `404`: The account or requested resource was not found or is not accessible. An account ID may have been disconnected and removed. Read GET /v1/accounts for current account IDs.
- `405`: Platform does not support updating destinations.
- `409`: The account exists but is inactive or needs reconnection. Reconnect it, then read GET /v1/accounts for its current account ID before retrying. Code: ads_connection_required.
- `429`: LinkedIn rate limit hit. Retry with backoff.

## Changes

- **2026-11-11** `34f8dbff5e0d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/ads/conversions/destinations/:destinationId/patch.md)

---

[API](https://skmtc.dev/zernio/apis/zernio-api.md) - [All operations](https://skmtc.dev/zernio/apis/zernio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zernio/apis/zernio-api/revisions/21ba7421089d?raw)
