Required. A parent name of the formprojects/{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 ofUserCreds.
Response body
If successful, the response body contains a newly created instance ofUserCreds.
[[["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-06-02 UTC."],[],[],null,["# Method: projects.databases.userCreds.create\n\nCreate a user creds.\n\n### HTTP 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\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [UserCreds](/firestore/docs/reference/rest/v1/projects.databases.userCreds#UserCreds).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [UserCreds](/firestore/docs/reference/rest/v1/projects.databases.userCreds#UserCreds).\n\n### Authorization 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 [Authentication Overview](/docs/authentication#authorization-gcp)."]]