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/*}: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 allows for the enrollment of data sources within a user's project, enabling the creation of transfer configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe API uses a \u003ccode\u003ePOST\u003c/code\u003e request to \u003ccode\u003ehttps://bigquerydatatransfer.googleapis.com/v1/{name=projects/*}:enrollDataSources\u003c/code\u003e and requires a project ID in the path parameter \u003ccode\u003ename\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be a JSON object containing an array of \u003ccode\u003edataSourceIds\u003c/code\u003e, with at least one ID provided.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful enrollment returns an empty JSON object in the response body, otherwise an error will be thrown.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003eresourcemanager.projects.update\u003c/code\u003e IAM permission on the specified project and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.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.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/*}: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)."]]