---
updatedAt: 2026-04-21T03:40:36.000Z
agentTools:
  projectIndex: https://docs.ternary.app/llms.txt
---

# Update GCP integration

Update an existing GCP data integration.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Core API",
    "description": "Ternary Resource Management API",
    "version": "1.0.0",
    "contact": {},
    "license": {
      "name": "MIT",
      "identifier": "MIT"
    }
  },
  "tags": [
    {
      "name": "Data Integration: GCP",
      "description": "Manage Google Cloud billing integrations."
    }
  ],
  "servers": [
    {
      "url": "https://core-api.ternary.app/api",
      "description": "Core API"
    },
    {
      "url": "https://core-api.eu.ternary.app/api",
      "description": "Core API (EU)"
    }
  ],
  "externalDocs": {
    "description": "Raw JSON",
    "url": "https://core-api.ternary.app/api/docs.json"
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "FailureResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "HTTP status code",
            "example": "400 - Bad Request"
          },
          "message": {
            "type": "string",
            "description": "Error message",
            "example": "ERROR_INVALID_PARAMS"
          },
          "reason": {
            "type": "string",
            "description": "Error reason code"
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "UpdateDataIntegrationResponseBody": {
        "type": "object",
        "properties": {
          "integrationID": {
            "type": "string"
          }
        },
        "required": [
          "integrationID"
        ]
      },
      "UpdateGCPIntegrationRequestBody": {
        "type": "object",
        "properties": {
          "bigQueryMonitoring": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "infoSchemaTable": {
                  "type": "string",
                  "description": "BigQuery schema table"
                },
                "projectID": {
                  "type": "string",
                  "description": "BigQuery project ID"
                },
                "regions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "BigQuery region"
                },
                "validations": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "error": {
                        "type": "string"
                      },
                      "errorType": {
                        "type": "string"
                      },
                      "lastCheckedAt": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "success": {
                        "type": "boolean"
                      },
                      "successLastChangedAt": {
                        "type": "string"
                      },
                      "ternaryError": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "error",
                      "errorType",
                      "name",
                      "success"
                    ]
                  },
                  "description": "BigQuery validations"
                }
              },
              "required": [
                "infoSchemaTable",
                "projectID",
                "regions"
              ]
            }
          },
          "billingAccountID": {
            "type": "string",
            "description": "GCP billing account ID"
          },
          "billingExportSource": {
            "type": "object",
            "properties": {
              "datasetID": {
                "type": "string",
                "description": "GCP dataset ID"
              },
              "projectID": {
                "type": "string",
                "description": "GCP project ID"
              },
              "tableID": {
                "type": "string",
                "description": "GCP table ID"
              }
            },
            "required": [
              "datasetID",
              "projectID",
              "tableID"
            ]
          },
          "carbonFootprintSource": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "datasetID": {
                "type": "string",
                "description": "GCP dataset ID"
              },
              "projectID": {
                "type": "string",
                "description": "GCP project ID"
              },
              "tableID": {
                "type": "string",
                "description": "GCP table ID"
              }
            },
            "required": [
              "datasetID",
              "projectID",
              "tableID"
            ]
          },
          "cudSharingEnabled": {
            "type": "boolean",
            "description": "Commitment sharing enabled"
          },
          "detailedBillingExportSource": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "datasetID": {
                "type": "string",
                "description": "GCP dataset ID"
              },
              "projectID": {
                "type": "string",
                "description": "GCP project ID"
              },
              "tableID": {
                "type": "string",
                "description": "GCP table ID"
              }
            },
            "required": [
              "datasetID",
              "projectID",
              "tableID"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Cloud integration name"
          },
          "pricingExportSource": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "datasetID": {
                "type": "string",
                "description": "GCP dataset ID"
              },
              "projectID": {
                "type": "string",
                "description": "GCP project ID"
              },
              "tableID": {
                "type": "string",
                "description": "GCP table ID"
              }
            },
            "required": [
              "datasetID",
              "projectID",
              "tableID"
            ]
          },
          "cudMetadataExportSource": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "datasetID": {
                "type": "string",
                "description": "GCP dataset ID"
              },
              "projectID": {
                "type": "string",
                "description": "GCP project ID"
              },
              "tableID": {
                "type": "string",
                "description": "GCP table ID"
              }
            },
            "required": [
              "datasetID",
              "projectID",
              "tableID"
            ]
          },
          "rootElement": {
            "type": "string",
            "description": "Root element"
          }
        }
      }
    }
  },
  "paths": {
    "/data-integrations/gcp/{integrationID}": {
      "patch": {
        "summary": "Update GCP integration",
        "tags": [
          "Data Integration: GCP"
        ],
        "operationId": "updateGCPIntegration",
        "description": "Update an existing GCP data integration.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "Unique integration ID",
              "example": "5urDCEWi8GDPPdqmLhUF"
            },
            "required": true,
            "description": "Unique integration ID",
            "name": "integrationID",
            "in": "path"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateGCPIntegrationRequestBody"
              },
              "examples": {
                "updateGCPIntegration": {
                  "value": {
                    "name": "Updated Production GCP",
                    "billingAccountID": "01ABCD-234EFG-567HIJ",
                    "cudSharingEnabled": true,
                    "rootElement": "organizations/123456789",
                    "billingExportSource": {
                      "datasetID": "billing_export",
                      "projectID": "my-project",
                      "tableID": "gcp_billing_export_v1_01ABCD_234EFG_567HIJ"
                    },
                    "detailedBillingExportSource": {
                      "datasetID": "billing_export",
                      "location": "US",
                      "projectID": "my-project",
                      "tableID": "gcp_detailed_billing_export_v1_01ABCD_234EFG_567HIJ"
                    },
                    "pricingExportSource": {
                      "datasetID": "pricing_export",
                      "location": "US",
                      "projectID": "my-project",
                      "tableID": "gcp_pricing_export_v1_01ABCD_234EFG_567HIJ"
                    },
                    "carbonFootprintSource": {
                      "datasetID": "billing_export",
                      "location": "US",
                      "projectID": "my-project",
                      "tableID": "carbon_footprint"
                    },
                    "bigQueryMonitoring": [
                      {
                        "infoSchemaTable": "JOBS_BY_FOLDER",
                        "projectID": "my-project",
                        "regions": [
                          "us-central1"
                        ]
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDataIntegrationResponseBody"
                },
                "examples": {
                  "updateGCPIntegration": {
                    "value": {
                      "integrationID": "5urDCEWi8GDPPdqmLhUF"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "400Response": {
                    "value": {
                      "code": "400 - Bad Request",
                      "message": "ERROR_INVALID_PARAMS"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "401Response": {
                    "value": {
                      "code": "401 - Unauthorized",
                      "message": "ERROR_UNAUTHORIZED"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "403Response": {
                    "value": {
                      "code": "403 - Forbidden",
                      "message": "ERROR_PERMISSION_DENIED"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The target integration or its tenant does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FailureResponse"
                },
                "examples": {
                  "404Response": {
                    "value": {
                      "code": "404 - Not Found",
                      "message": "HTTP/ERROR",
                      "reason": "UpdateGCPIntegrationCommandFailure/INTEGRATION_NOT_FOUND"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Core API",
      "tags": [
        "Alert Rule",
        "Alert Rule Events",
        "API Keys",
        "AWS Rate Recommendations",
        "Azure Rate Recommendations",
        "Billing Rules",
        "Budget",
        "Cases",
        "Cost Alerts",
        "Custom Label",
        "Custom Measures",
        "Data Integration",
        "Data Integration: Alibaba",
        "Data Integration: AWS",
        "Data Integration: Azure",
        "Data Integration: Custom Data",
        "Data Integration: Databricks",
        "Data Integration: GCP",
        "Data Integration: Oracle",
        "Data Integration: Snowflake",
        "Dimension Preferences",
        "GCP Rate Recommendations",
        "Integrations",
        "Label Map",
        "MCP Availability",
        "MCP Client Usage",
        "Measure Preferences",
        "MSP Billing Information",
        "MSP Child",
        "MSP Shared Payer Integrations",
        "MSP Tenant Settings",
        "Permissions",
        "Ramp Plans",
        "Report",
        "Resource Subscriptions",
        "Role",
        "Savings Opportunity Filter",
        "Scoped View",
        "Support Tickets",
        "Tenant",
        "Tenant SSO Config",
        "Usage Recommendations",
        "User",
        "User Group Config"
      ]
    }
  ]
}
```