Create thesaurus

post

/gsadmin/v1/{appName}/thesaurus

Creates thesaurus in the specified application.

Request

Supported Media Types
  • application/json
  • application/zip
Path Parameters
appName
Type: string
Required: true
Specifies the name of your application, for example, Discover.
Body Parameter
The thesaurus to be created for the given application.
Root Schema : Thesaurus
Type: object
Represents the thesaurus in the ECR. Child nodes should represent thesaurus entries that conform to ThesaurusEntry JSON schema.
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

Supported Media Types
  • application/json
201 Response
Thesaurus successfully created.
Body
Root Schema : Response
Type: object

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"
}