---
schema_version: "1"
id: 9312507d9c4dade765392fad0d0a40c5f286b915a6c833068064c5ae6674f471
title: ConnectApi.TargetUpdateInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_target_update.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_target_update.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 90dce94ea1ef4176c61adc0663791c0fb307b2ebe994670e594d452369c0fc0b
description: Target to update.
---
# ConnectApi.TargetUpdateInput

Target to update.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| audienceId | String | ID of the audience to assign to the target. | Required if priority isn’t specified. Otherwise, Optional | 48.0 |
| priority | Integer | Priority of the target. Within a group, priority determines which target is returned if the user matches more than one audience. | Required if audienceId isn’t specified. Otherwise, Optional | 48.0 |
| targetId | String | ID of the target to update. | Required | 48.0 |

#### See Also

- [ConnectApi.TargetCollectionUpdateInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_target_collection_update.htm "Collection of targets to update.")