update_activity
Updates an Adobe Target activity by injecting new HTML/JavaScript code into a specified experience, with automatic handling of payload cloning and offer deduplication to prevent errors.
Instructions
Update an Adobe Target activity by injecting new HTML/JS code into a named experience. API key and tenant are loaded from environment variables automatically. Handles: deep-clone of payload, creating new option slots (optionLocalId=0), orphan pruning, offerContent deduplication (prevents UniqueElements AT error), and supports both AB and XT activity types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newCode | Yes | The new HTML/JavaScript code to inject into the target experience. | |
| activityId | Yes | The ID of the Adobe Target activity to update (MANDATORY). | |
| activityType | No | The activity type: "ab" (default) or "xt". | ab |
| experienceName | Yes | The Adobe Target experience name to update (e.g. "MCP Banner"). Matched case-insensitively. |