Enroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the dataSources.list RPC and as such, will appear in the BigQuery UI, and the documents can be found in the public guide for BigQuery Web UI and Data Transfer Service.
HTTP request
POST https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*/locations/*}:enrollDataSources
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["\u003cp\u003eThis API endpoint \u003ccode\u003eprojects.locations.enrollDataSources\u003c/code\u003e allows users to enroll data sources in a project, enabling the creation of transfer configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003ePOST\u003c/code\u003e method to the specified URL using gRPC Transcoding syntax, requiring a project name in the path.\u003c/p\u003e\n"],["\u003cp\u003eThe request body is in JSON format and needs at least one \u003ccode\u003edataSourceId\u003c/code\u003e in an array called \u003ccode\u003edataSourceIds\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe successful response from the endpoint will be an empty JSON object.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, the request needs the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the \u003ccode\u003eresourcemanager.projects.update\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: locations.enrollDataSources\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\n**Full name**: projects.locations.enrollDataSources\n\nEnroll data sources in a user project. This allows users to create transfer configurations for these data sources. They will also appear in the dataSources.list RPC and as such, will appear in the [BigQuery UI](https://console.cloud.google.com/bigquery), and the documents can be found in the public guide for [BigQuery Web UI](https://cloud.google.com/bigquery/bigquery-web-ui) and [Data Transfer Service](https://cloud.google.com/bigquery/docs/working-with-transfers).\n\n### HTTP request\n\n`POST https://bigquerydatatransfer.googleapis.com/v1/{name=projects/*/locations/*}:enrollDataSources`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]