Create thesaurus entry

post

/gsadmin/v1/{appName}/thesaurus/{thesaurusEntryId}

Creates thesaurus entry 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.
thesaurusEntryId
Type: string
Required: true
Specifies the id of the thesaurus entry.
Body Parameter
The thesaurus entry to create.
Root Schema : ThesaurusEntry
Type: object
Represents the thesaurus entry in the ECR.
Nested Schema : synonyms
Type: array
Security
basicAuth
Type: basic
Description: Basic username/password authentication.

Response

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

Examples

Request Body Example

The following example shows how to add a thesaurus entry with a user-specified ID to the thesaurus:

{
	"ecr:type" : "thesaurus-entry",
 	"type": "one-way",
  	"synonyms": [  "blouse"  ] 
 	"searchTerms": "shirt"
}