google-tag-manager.x.tagmanager-accounts-containers-workspaces-templates-import-from-gallerytemplates.import_from_gallery — Imports a GTM Custom Template from Gallery.
- Price
- freeZum Anbieterpreis
- Success rate
- —Noch keine ErfolgsratendatenNoch keine Erfolgsratendaten
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/google-tag-manager.x.tagmanager-accounts-containers-workspaces-templates-import-from-galleryPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameter
| Parameter | Typ | Erforderlich | Beschreibung | Beispiel |
|---|---|---|---|---|
| Pfadparameter | ||||
accountsId | Zeichenkette | Erforderlich | Atomic accountsId path segment from Google's expanded resource name; do not pass a slash-delimited parent/path value | |
containersId | Zeichenkette | Erforderlich | Atomic containersId path segment from Google's expanded resource name; do not pass a slash-delimited parent/path value | |
workspacesId | Zeichenkette | Erforderlich | Atomic workspacesId path segment from Google's expanded resource name; do not pass a slash-delimited parent/path value | |
| Abfrageparameter | ||||
gallerySha | Zeichenkette | Optional | SHA version of the Gallery template to import. Defaulted to the latest SHA version if not provided. | |
galleryOwner | Zeichenkette | Optional | Owner of the Gallery template to import | |
galleryRepository | Zeichenkette | Optional | Repository of the Gallery template to import | |
acknowledgePermissions | Boolean | Optional | 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. | |
- Pfadparameter
accountsIdZeichenketteErforderlichAtomic accountsId path segment from Google's expanded resource name; do not pass a slash-delimited parent/path value
containersIdZeichenketteErforderlichAtomic containersId path segment from Google's expanded resource name; do not pass a slash-delimited parent/path value
workspacesIdZeichenketteErforderlichAtomic workspacesId path segment from Google's expanded resource name; do not pass a slash-delimited parent/path value
- Abfrageparameter
galleryShaZeichenketteOptionalSHA version of the Gallery template to import. Defaulted to the latest SHA version if not provided.
galleryOwnerZeichenketteOptionalOwner of the Gallery template to import
galleryRepositoryZeichenketteOptionalRepository of the Gallery template to import
acknowledgePermissionsBooleanOptionalMust be set to true to allow Gallery template to be imported into the workspace. If this bit is false, the import operation will fail.
Codebeispiele
Ersetze $TOOLSWITCH_KEY durch den in der Konsole erstellten Schlüssel.
curl -X POST 'https://toolswitch.dev/v1/tools/google-tag-manager.x.tagmanager-accounts-containers-workspaces-templates-import-from-gallery' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/google-tag-manager.x.tagmanager-accounts-containers-workspaces-templates-import-from-gallery",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-tag-manager.x.tagmanager-accounts-containers-workspaces-templates-import-from-gallery", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Diese Gateway-API ist eine Vorschauversion; URL und Authentifizierung können sich ändern. Die Beispielparameter sind Musterdaten. Aufrufe werden mit free einschließlich Servicegebühr abgerechnet.