Actions27
- Account Actions
- Built-In Variable Actions
- Client Actions
- Container Actions
- Destination Actions
- Environment Actions
Client → Update Client
AI-generatedOverview
This node operation updates an existing Google Tag Manager (GTM) Client within a specified GTM Account, Container, and Workspace. It is useful for modifying client configurations or properties in GTM programmatically. For example, a user can update client details such as client name or settings by providing the necessary IDs and the updated data in the request body.
Use Case Examples
- Updating a GTM Client's configuration by specifying the Account ID, Container ID, Workspace ID, Client ID, and the new client data in the request body.
- Modifying client settings in a GTM workspace to reflect changes in tracking or integration requirements.
Properties
| Name | Meaning |
|---|---|
| Account ID | The GTM Account ID where the client exists. |
| Container ID | The GTM Container ID where the client exists. |
| Workspace ID | The GTM Workspace ID where the client exists. |
| Client ID | The GTM Client ID of the client to update. |
| Optional Query Parameters | Additional optional parameters to customize the update operation, such as feature flags or filters. |
| Request Body | The JSON object containing the updated client data to be sent in the request body. |
Output
JSON
accountId- The GTM Account ID used in the request.containerId- The GTM Container ID used in the request.workspaceId- The GTM Workspace ID used in the request.clientId- The GTM Client ID that was updated.response- The JSON response from the GTM API containing the updated client details.
Dependencies
- Google Tag Manager API OAuth2 credentials
Troubleshooting
- Missing required parameters such as Account ID, Container ID, Workspace ID, or Client ID will cause the operation to fail with an error indicating the missing parameter.
- Invalid or expired OAuth2 credentials will result in authentication errors when calling the GTM API.
- Malformed JSON in the request body can cause the API request to fail; ensure the JSON is valid and matches the expected schema for a GTM Client update.
- API rate limits or network issues may cause intermittent failures; retrying the operation or checking network connectivity can help resolve these issues.