---
title: "POST /v2/campaigns/{id}/source"
method: POST
path: "/v2/campaigns/{id}/source"
---

# POST /v2/campaigns/{id}/source

`POST /v2/campaigns/{id}/source`

Updates the campaign source with a campaign. This API is idempotent.

## Path parameters

- `id` string, required — Identifier representing a Campaign

## Request body

- object
  - `source` object, required — Source of the campaign
    - `customerProfilesSegmentArn` string — Amazon Resource Names(ARN)
    - `eventTrigger` EventTrigger — Event trigger of the campaign
      - `customerProfilesDomainArn` string — Amazon Resource Names(ARN)

## Response `200`

Success

## Other responses

- `480` — InternalServerException
- `481` — ResourceNotFoundException
- `482` — ValidationException
- `483` — ConflictException
- `484` — InvalidCampaignStateException
- `485` — AccessDeniedException

---

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