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.
- ecr:createDate
-
Type:
string
- ecr:lastModified
-
Type:
string
- ecr:lastModifiedBy
-
Type:
string
- ecr:type
-
Type:
string
Default Value:thesaurus
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
- message
-
Type:
string
- status
-
Type:
integer
(int32
)
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" }