v1

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

Creates a SynonymSet for a single context. Throws an ALREADY_EXISTS exception if a synonymset already exists for the context.

post/v1/{+parent}/synonymSets

Path parameters

parentstring required

Required. The parent name. Format: projects/{project_number}/locations/{location}.

Request body

namestring

The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.

contextstring

This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.

Response

Successful response