[[["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-21 UTC."],[[["\u003cp\u003eThis page details the process of creating a new Repository using the Dataform API within a specified project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request method is \u003ccode\u003ePOST\u003c/code\u003e, and the URL structure adheres to gRPC Transcoding syntax, including a required \u003ccode\u003eparent\u003c/code\u003e path parameter.\u003c/p\u003e\n"],["\u003cp\u003eCreating a repository requires a \u003ccode\u003erepositoryId\u003c/code\u003e as a mandatory query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be a \u003ccode\u003eRepository\u003c/code\u003e instance, and a successful response will also contain a newly created \u003ccode\u003eRepository\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for repository creation requires specific IAM permissions, particularly \u003ccode\u003edataform.repositories.create\u003c/code\u003e, and one of the listed OAuth scopes.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.repositories.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nCreates a new Repository in a given project and location.\n\n### HTTP request\n\n`POST https://dataform.googleapis.com/v1beta1/{parent=projects/*/locations/*}/repositories`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Repository](/dataform/reference/rest/v1beta1/projects.locations.repositories#Repository).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Repository](/dataform/reference/rest/v1beta1/projects.locations.repositories#Repository).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/bigquery`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `dataform.repositories.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]