---
title: "Upsert pipeline CRM sync configuration (enable/disable and targets)"
method: PUT
path: "/api/crm-sync/v1/pipelines/{pipeline_id}/sync"
tags: ["CRM Sync"]
---

# Upsert pipeline CRM sync configuration (enable/disable and targets)

`PUT /api/crm-sync/v1/pipelines/{pipeline_id}/sync`

## Request

- Base URL: `https://agency-partner-hub-web.global-aws-use1-p.app-us1.com`
- URL: `https://agency-partner-hub-web.global-aws-use1-p.app-us1.com/api/crm-sync/v1/pipelines/{pipeline_id}/sync`
- Auth: one of:
  - API key in header `api-key`
  - HTTP bearer

## Path parameters

- `pipeline_id` integer, required

## Request body

- UpsertPipelineSyncRequest
  - `sync_enabled` boolean, nullable, required
  - `target` object, nullable
    - `type` 'all' | 'label' | 'manual' | 'null', nullable
    - `account_ids` integer[], nullable
    - `label_ids` integer[], nullable

## Response `204`

Configuration saved

## Other responses

- `400`: Bad Request
- `401`: Authorization error
- `404`: Pipeline is not in the reseller catalogue
- `422`: Validation failed

---

[API](https://skmtc.dev/activecampaign/apis/partners-api.md) - [All operations](https://skmtc.dev/activecampaign/apis/partners-api/llms.txt) - [OpenAPI document](https://skmtc.dev/activecampaign/apis/partners-api/revisions/846abb7d30bd?raw)
