Skip to content

Commit 315c6de

Browse files
feat(tagmanager): update the API
#### tagmanager:v2 The following keys were added: - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.description - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.flatPath - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.httpMethod - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.id - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.parameterOrder - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.parameters.path.description - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.parameters.path.location - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.parameters.path.pattern - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.parameters.path.required - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.parameters.path.type - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.path - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.request.$ref - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.response.$ref - resources.accounts.resources.containers.resources.workspaces.methods.bulk_update.scopes - schemas.BulkUpdateWorkspaceResponse.id - schemas.BulkUpdateWorkspaceResponse.properties.changes.description - schemas.BulkUpdateWorkspaceResponse.properties.changes.items.$ref - schemas.BulkUpdateWorkspaceResponse.properties.changes.type - schemas.BulkUpdateWorkspaceResponse.type - schemas.ProposedChange.id - schemas.ProposedChange.properties.changes.description - schemas.ProposedChange.properties.changes.items.$ref - schemas.ProposedChange.properties.changes.type - schemas.ProposedChange.type
1 parent 848fd58 commit 315c6de

File tree

3 files changed

+376
-297
lines changed

3 files changed

+376
-297
lines changed

discovery/tagmanager-v2.json

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,34 @@
10451045
},
10461046
"workspaces": {
10471047
"methods": {
1048+
"bulk_update": {
1049+
"description": "Applies multiple entity changes to a workspace in one call. When creating new entities, their entity IDs must be unique and in correct format. That is, they must start with \"new_\" and followed by number, e.g. \"new_1\", \"new_2\". Example body snippet to create myNewTag under myNewFolder is: ``` \"changes\": [ { \"folder\": { \"folderId\": \"new_1\", \"name\": \"myNewFolder\", ... }, \"changeStatus\": \"added\" }, { \"tag\": { \"tagId\": \"new_2\", \"name\": \"myNewTag\", \"parentFolderId\": \"new_1\", ... }, \"changeStatus\": \"added\" } ] ```",
1050+
"flatPath": "tagmanager/v2/accounts/{accountsId}/containers/{containersId}/workspaces/{workspacesId}/bulk_update",
1051+
"httpMethod": "POST",
1052+
"id": "tagmanager.accounts.containers.workspaces.bulk_update",
1053+
"parameterOrder": [
1054+
"path"
1055+
],
1056+
"parameters": {
1057+
"path": {
1058+
"description": "GTM Workspace's API relative path.",
1059+
"location": "path",
1060+
"pattern": "^accounts/[^/]+/containers/[^/]+/workspaces/[^/]+$",
1061+
"required": true,
1062+
"type": "string"
1063+
}
1064+
},
1065+
"path": "tagmanager/v2/{+path}/bulk_update",
1066+
"request": {
1067+
"$ref": "ProposedChange"
1068+
},
1069+
"response": {
1070+
"$ref": "BulkUpdateWorkspaceResponse"
1071+
},
1072+
"scopes": [
1073+
"https://www.googleapis.com/auth/tagmanager.edit.containers"
1074+
]
1075+
},
10481076
"create": {
10491077
"description": "Creates a Workspace.",
10501078
"flatPath": "tagmanager/v2/accounts/{accountsId}/containers/{containersId}/workspaces",
@@ -3958,7 +3986,7 @@
39583986
}
39593987
}
39603988
},
3961-
"revision": "20250820",
3989+
"revision": "20251203",
39623990
"rootUrl": "https://tagmanager.googleapis.com/",
39633991
"schemas": {
39643992
"Account": {
@@ -4302,6 +4330,19 @@
43024330
},
43034331
"type": "object"
43044332
},
4333+
"BulkUpdateWorkspaceResponse": {
4334+
"id": "BulkUpdateWorkspaceResponse",
4335+
"properties": {
4336+
"changes": {
4337+
"description": "The entities that were added or updated during the bulk-update. Does not include entities that were deleted or updated by the system.",
4338+
"items": {
4339+
"$ref": "Entity"
4340+
},
4341+
"type": "array"
4342+
}
4343+
},
4344+
"type": "object"
4345+
},
43054346
"Client": {
43064347
"id": "Client",
43074348
"properties": {
@@ -5623,6 +5664,19 @@
56235664
},
56245665
"type": "object"
56255666
},
5667+
"ProposedChange": {
5668+
"id": "ProposedChange",
5669+
"properties": {
5670+
"changes": {
5671+
"description": "The list of workspace changes to be applied.",
5672+
"items": {
5673+
"$ref": "Entity"
5674+
},
5675+
"type": "array"
5676+
}
5677+
},
5678+
"type": "object"
5679+
},
56265680
"PublishContainerVersionResponse": {
56275681
"description": "Publish container version response.",
56285682
"id": "PublishContainerVersionResponse",

0 commit comments

Comments
 (0)