---
title: "Update an activation"
method: PUT
path: "/cdp/{connection_id}/activation/{id}"
tags: ["cdp", "activation"]
---

# Update an activation

`PUT /cdp/{connection_id}/activation/{id}`

## Request

- Base URL: `http://api.unified.to`
- URL: `http://api.unified.to/cdp/{connection_id}/activation/{id}`
- Auth: API key in header `authorization`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- CdpActivation
  - `id` string: Unique identifier for this activation object
  - `created_at` string, date-time: The date that this activation object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: The last date that this activation object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: The name of the activation/sync job
  - `segment_id` string: The cdp_segment being activated; points to CdpSegment
  - `destination_id` string: The cdp_destination the data is sent to; points to CdpDestination
  - `source_id` string: The cdp_source the data originates from; points to CdpSource
  - `schedule` string: The activation schedule or mode (eg. cron, interval, realtime, batch)
  - `status` 'ACTIVE' | 'PAUSED' | 'ERROR' | 'PENDING': The current status of the activation
  - `last_run_at` string, date-time: When the activation last ran (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `is_enabled` boolean: Whether the activation is active/enabled
  - `metadata` CdpMetadata[]
    - `id` string
    - `slug` string: The attribute/trait key (eg. lifetime_value)
    - `value` unknown
    - `namespace` string: The scope or origin of the attribute (eg. computed, event, visitor)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the attribute value
    - `extra_data` unknown
  - `raw` unknown

## Response `200`

Successful

- CdpActivation
  - `id` string: Unique identifier for this activation object
  - `created_at` string, date-time: The date that this activation object was created (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `updated_at` string, date-time: The last date that this activation object was updated (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `name` string: The name of the activation/sync job
  - `segment_id` string: The cdp_segment being activated; points to CdpSegment
  - `destination_id` string: The cdp_destination the data is sent to; points to CdpDestination
  - `source_id` string: The cdp_source the data originates from; points to CdpSource
  - `schedule` string: The activation schedule or mode (eg. cron, interval, realtime, batch)
  - `status` 'ACTIVE' | 'PAUSED' | 'ERROR' | 'PENDING': The current status of the activation
  - `last_run_at` string, date-time: When the activation last ran (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
  - `is_enabled` boolean: Whether the activation is active/enabled
  - `metadata` CdpMetadata[]
    - `id` string
    - `slug` string: The attribute/trait key (eg. lifetime_value)
    - `value` unknown
    - `namespace` string: The scope or origin of the attribute (eg. computed, event, visitor)
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'ARRAY' | 'OBJECT': The data type of the attribute value
    - `extra_data` unknown
  - `raw` unknown

---

[API](https://skmtc.dev/unified/apis/unified-to-api-2.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/unified/apis/unified-to-api-2/revisions/7a38bdd7f089?raw)
