Method: projects.locations.oauthClients.create

Creates a new OauthClient.

You cannot reuse the name of a deleted OauthClient until 30 days after deletion.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. The parent resource to create the OauthClient in. The only supported location is global.

Query parameters



Required. The ID to use for the OauthClient, which becomes the final component of the resource name. This value should be a string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix gcp- is reserved for use by Google, and may not be specified.

Request body

The request body contains an instance of OauthClient.

Response body

If successful, the response body contains a newly created instance of OauthClient.

Authorization scopes

Requires one of the following OAuth scopes:


For more information, see the Authentication Overview.