Stay organized with collections
Save and categorize content based on your preferences.
Adds a Destination to this Container and removes it from the Container to
which it is currently linked.
Try it now.
Request
HTTP request
POST https://www.googleapis.com/tagmanager/v2/+parent/destinations:link
Parameters
Parameter name
Value
Description
Path parameters
parent
string
GTM parent Container's API relative path.
Example: accounts/{account_id}/containers/{container_id}
Optional query parameters
allowUserPermissionFeatureUpdate
boolean
Must be set to true to allow features.user_permissions to change from false
to true. If this operation causes an update but this bit is false, the
operation will fail.
destinationId
string
Destination ID to be linked to the current container.
Authorization
This request requires authorization with the following scope:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["Links a specified Destination to the given Container while removing it from its current Container."],["Requires authorization with `https://www.googleapis.com/auth/tagmanager.edit.containers` scope."],["Uses an HTTP POST request to the `https://www.googleapis.com/tagmanager/v2/+parent/destinations:link` endpoint with `parent` and optional `allowUserPermissionFeatureUpdate` and `destinationId` parameters."],["The request body should be empty."],["A successful response returns a Destinations resource representing the linked Destination."]]],[]]