Updates a rule configuration.
put
/gsadmin/v1/{appName}/content/{contentCollectionFolder}/{Rule}
Request
Supported Media Types
- application/json
- application/zip
Path Parameters
- Rule
-
Type:
string
Required:true
Specifies the name of rule.- appName
Type:string
Required:true
Specifies the name of your application, for example, Discover.- contentCollectionFolder
Type:string
Required:true
Specifies the name of content collection folder.Security- basicAuth
-
Type:
basic
Description:Basic username/password authentication.
Response
Supported Media Types
- application/json
202 Response
Rule updated successfully.
Body
Root Schema : Response
Type:
object
- message
-
Type:
string
- status
-
Type:
integer
(int32
)
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": "Lookingformore informationaboutourcompany?", "link-title":"AboutUs", "link-url":"/about-us", "image":"company-logo.png" }, "triggers":[ { "searchTerms":"about", "matchmode":""MATCHEXACT" }, { "searchTerms":"aboutus", "matchmode":"MATCHEXACT" } ] }