Create thesaurus
post
/gsadmin/v1/{appName}/thesaurus
Creates thesaurus in the specified application.
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
The thesaurus to be created for the given application.
Root Schema : Thesaurus
Type:
objectRepresents the thesaurus in the ECR. Child nodes should represent thesaurus entries that conform to ThesaurusEntry JSON schema.
Show Source
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Thesaurus successfully created.
Examples
Request Body Example
The following example shows how to add a thesaurus entry with a system-generated ID to the thesaurus:
{
"ecr:type" : "thesaurus-entry",
"type": "one-way",
"synonyms": [ "blouse" ]
"searchTerms": "shirt"
}