Method: projects.databases.userCreds.create
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://firestore.googleapis.com/v1/{parent=projects/*/databases/*}/userCreds
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. A parent name of the form projects/{projectId}/databases/{databaseId}
|
Query parameters
Parameters |
userCredsId |
string
Required. The ID to use for the user creds, which will become the final component of the user creds's resource name. This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/ with first character a letter and the last a letter or a number. Must not be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
|
Request body
The request body contains an instance of UserCreds
.
Response body
If successful, the response body contains a newly created instance of UserCreds
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/datastore
https://www.googleapis.com/auth/cloud-platform
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-23 UTC.
[null,null,["Last updated 2025-06-23 UTC."],[],[],null,["Create a user creds.\n\nHTTP request\n\n`POST https://firestore.googleapis.com/v1/{parent=projects/*/databases/*}/userCreds`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\nQuery parameters\n\nRequest body\n\nThe request body contains an instance of [UserCreds](/docs/firestore/reference/rest/v1/projects.databases.userCreds#UserCreds).\n\nResponse body\n\nIf successful, the response body contains a newly created instance of [UserCreds](/docs/firestore/reference/rest/v1/projects.databases.userCreds#UserCreds).\n\nAuthorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/datastore`\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]