多帳號控制平面 API 的轉換 API 閘道:參考資料

帳號資料路由配置

更新資料路由

可讓您為像素定義第一方網域,以便與閘道進行通訊。前往這裡瞭解更詳細的資訊

架構

POST https://{capig_domain}/capig/graphql/ 
_________________________________________________________________________________________________________________
      
mutation IngressEditingModalMutation(
 $tenantId: ID!
 $input: IngressDomainInput
) {
 tenantMutations(tenantId: $tenantId) {
   upsertIngressDomain(input: $input) {
     id
     ingress
     cnameResolveSuccess
     tenantName
     enhancementTenantIngressVerifiedResult {
       id
       tenantIngressVerified
     }
   }
 }
}
_________________________________________________________________________________________________________
tenantId: ID!
_______________________________________________________________________________________________________
input IngressDomainInput {
  ingress: String!
  targetDomain: String!
}
     

欄位

欄位說明

tenantId
字串

必要項目

帳號的唯一識別碼


IngressDomainInput

欄位說明

ingress
字串

必要項目

需要更新的新子網域

targetDomain
字串

必要項目

合作夥伴閘道網域


傳回

欄位說明

IngressDomain
IngressDomain

入口網域物件


錯誤代碼

代碼說明

401

未授權升級入口網域

500

內部伺服器錯誤


要求範例

變異

 mutation IngressEditingModalMutation(
$tenantId: ID!
$input: IngressDomainInput
) {
tenantMutations(tenantId: $tenantId) {
  upsertIngressDomain(input: $input) {
    id
    ingress
    cnameResolveSuccess
    enhancementTenantIngressVerifiedResult {
      id
      tenantIngressVerified
    }
  }
}
}
     

變數

{
  "tenantId": "IaoreXfj",
  "input": {
      "ingress": "capig.advertiser.com",
      "targetDomain": "capig.targetDomain.com"
  }
}
     

回應範例

{
   "data": {
       "tenantMutations": {
           "upsertIngressDomain": {
               "id": "IaoreXfj:ingress",
               "ingress": "capig.advertiser.com",
               "cnameResolveSuccess": true,
               "enhancementTenantIngressVerifiedResult": {
                   "id": "IaoreXfj:tenantIngressVerified",
                   "tenantIngressVerified": true
               }
           }
       }