多账户专用转化 API 网关控制平面 API:参考文档

账户数据路由配置

更新数据路由

允许定义第一方网域,以便 Pixel 像素代码与网关通信。点击此处了解更多详细信息

结构

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
               }
           }
       }