Method: projects.locations.phraseSets.create

Creates a PhraseSet.

HTTP request

POST https://{endpoint}/v2/{parent=projects/*/locations/*}/phraseSets

Where {endpoint} is one of the supported service endpoints.

The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The project and location where this PhraseSet will be created. The expected format is projects/{project}/locations/{location}.

Query parameters

Parameters
validateOnly

boolean

If set, validate the request and preview the PhraseSet, but do not actually create it.

phraseSetId

string

The ID to use for the PhraseSet, which will become the final component of the PhraseSet'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 PhraseSet.

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.phraseSets.create

For more information, see the IAM documentation.