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(required): string
Specifies the name of your application. For example, "cloud".
-
thesaurusEntryId(required): string
Specifies the id of the thesaurus entry.
The thesaurus entry to create.
Root Schema : ThesaurusEntry
Type:
objectRepresents the thesaurus entry in the ECR.
Show Source
-
ecr:createDate:
string
-
ecr:lastModified:
string
-
ecr:lastModifiedBy:
string
-
ecr:type:
string
Default Value:
thesaurus-entry -
searchTerms:
string
-
synonyms:
array synonyms
-
type:
string
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
201 Response
Thesaurus entry successfully created.
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"
}