Workspaces: create

建立工作區。立即試用

要求

HTTP 要求

POST https://www.googleapis.com/tagmanager/v2/+parent/workspaces

參數

參數名稱 說明
路徑參數
parent string GTM 父項容器的 API 相對路徑。 範例:accounts/{account_id}/containers/{container_id}

授權

此要求需要取得下列範圍的授權:

範圍
https://www.googleapis.com/auth/tagmanager.edit.containers

詳情請參閱驗證和授權頁面。

要求主體

在要求主體中,提供具有以下屬性的工作區資源

資源名稱 說明 附註
必要屬性
name string Workspace 顯示名稱。 可寫入
選用屬性
description string 工作區說明。 可寫入

回應

如果成功,這個方法會在回應主體中傳回工作區資源

試試看!

您可以使用下方的 APIs Explorer,針對即時資料呼叫這個方法,然後查看回應。