Create thesaurus

post

/gsadmin/v1/{appName}/thesaurus

Creates thesaurus in the specified application.

Request

Supported Media Types
Path Parameters
Body ()
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.
Show Source
Security
Back to Top

Response

Supported Media Types

201 Response

Thesaurus successfully created.
Body ()
Root Schema : Response
Type: object
Show Source
Back to Top

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"
}
Back to Top