v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13113155.9 KB
projects

Create a custom class.

post/v1/{+parent}/customClasses

Path parameters

parentstring required

Required. The parent resource where this custom class will be created. Format: projects/{project}/locations/{location}/customClasses Speech-to-Text supports three locations: global, us (US North America), and eu (Europe). If you are calling the speech.googleapis.com endpoint, use the global location. To specify a region, use a regional endpoint with matching us or eu location value.

Request body

customClassIdstring

Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters.

Response

Successful response