Required. The parent resource for API version. Format: projects/{project}/locations/{location}/apis/{api}
Query parameters
Parameters
versionId
string
Optional. The ID to use for the API version, which will become the final component of the version's resource name. This field is optional.
If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
If not provided, a system generated id will be used.
This value should be 4-500 characters, overall resource name which will be of format projects/{project}/locations/{location}/apis/{api}/versions/{version}, its length is limited to 700 characters and valid characters are /[a-z][A-Z][0-9]-_/.
[[["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-28 UTC."],[[["\u003cp\u003eThis API creates a new version for an API resource within the API hub using a \u003ccode\u003ePOST\u003c/code\u003e request to a specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required to specify the API resource the version belongs to, following the format \u003ccode\u003eprojects/{project}/locations/{location}/apis/{api}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eversionId\u003c/code\u003e query parameter can be included to set a specific ID for the new version, otherwise, the system will generate one.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003eVersion\u003c/code\u003e instance, and a successful response will include a newly created \u003ccode\u003eVersion\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eCreating a new API version requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003eapihub.versions.create\u003c/code\u003e on the parent resource.\u003c/p\u003e\n"]]],[],null,[]]