- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Full name: accounts.containers.workspaces.templates.import_from_gallery
Imports a GTM Custom Template from Gallery.
HTTP request
POST https://tagmanager.googleapis.com/tagmanager/v2/{parent}/templates:import_from_gallery
Path parameters
Parameters | |
---|---|
parent |
GTM Workspace's API relative path. It takes the form |
Query parameters
Parameters | |
---|---|
galleryOwner |
Owner of the Gallery template to import |
galleryRepository |
Repository of the Gallery template to import |
gallerySha |
SHA version of the Gallery template to import. Defaulted to the latest SHA version if not provided. |
acknowledgePermissions |
Must be set to true to allow Gallery template to be imported into the workspace. If this bit is false, the import operation will fail. |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of CustomTemplate
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/tagmanager.edit.containers
For more information, see the OAuth 2.0 Overview.