Updates a rule configuration.
put
/gsadmin/v1/{appName}/content/{contentCollectionFolder}/{Rule}
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
-
Rule: string
Specifies the name of rule.
-
appName: string
Specifies the name of your application. For example, "cloud".
-
contentCollectionFolder: string
Specifies the name of content collection folder.
Security
-
basicAuth: basic
Type:
basicDescription:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Rule updated successfully.
Examples
The following example updates an additional content item named aboutus:
curl -X PUT -H "Authorization:Bearer <token>" -H "Content-Type:application/json" -d@pathname/filename.json http://host:port/gsadmin/v1/cloud/content/additionalContent/aboutus
Request Body Example
The following example shows the updated definition of the rule trigger aboutus:
{ "ecr:type" : "content-item",
"priority" : 8,
"contentItem":
{
"@type": "UnstructuredContent",
"title": "Looking for more information about our company?",
"link-title": "About Us",
"link-url": "/about-us",
"image": "company-logo.png"
},
"triggers":[
{
"searchTerms": "about",
"matchmode": ""MATCHEXACT"
},
{
"searchTerms": "about us",
"matchmode": "MATCHEXACT"
}
]
}