Partial update thesaurus
patch
/gsadmin/v1/{appName}/thesaurus
Partial updates one or more thesaurus entries in the specified application.
Request
Supported Media Types
- application/json
Path Parameters
-
appName: string
Specifies the name of your application. For example, "cloud".
The request body represents the partially updated thesaurus.
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
-
basicAuth: basic
Type:
basic
Description:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Thesaurus successfully updated.
Examples
A PATCH endpoint cannot access an object through its parent object. Thus, you cannot use this endpoint to modify the thesaurus entries contained in the thesaurus. The following request generates an error:
PATCH /gsadmin/v1/cloud/thesaurus
Request Body
{
"ecr:type" : "thesaurus",
"auto_generated_id":
{
"ecr:type" : "thesaurus-entry",
"synonyms": [ "jersey" ]
}
}