[[["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-04-30 UTC."],[[["\u003cp\u003eThis document describes how to reserve specific numeric IDs for keys in Google Cloud Datastore, preventing them from being auto-allocated.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves making a \u003ccode\u003ePOST\u003c/code\u003e request to the \u003ccode\u003ereserveIds\u003c/code\u003e endpoint, using the project ID as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the database ID and a list of keys for which you want to reserve the numeric IDs.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will result in an empty response body, signifying the keys' IDs are now reserved.\u003c/p\u003e\n"],["\u003cp\u003eAuthorizing this action requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/datastore\u003c/code\u003e or the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.reserveIds\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\nPrevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.\n\n### HTTP request\n\n`POST https://datastore.googleapis.com/v1beta3/projects/{projectId}:reserveIds`\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 empty.\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)."]]