- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Creates a CustomClass.
HTTP request
POST https://speech.googleapis.com/v2/{parent=projects/*/locations/*}/customClasses
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
parent |
Required. The project and location where this CustomClass will be created. The expected format is |
Query parameters
| Parameters | |
|---|---|
validateOnly |
If set, validate the request and preview the CustomClass, but do not actually create it. |
customClassId |
The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. |
Request body
The request body contains an instance of CustomClass.
Response body
If successful, the response body contains a newly created instance of Operation.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
speech.customClasses.create
For more information, see the IAM documentation.