Updates a rule configuration.

put

/gsadmin/v1/{appName}/content/{contentCollectionFolder}/{Rule}

Request

Supported Media Types
Path Parameters
Security
Back to Top

Response

Supported Media Types

202 Response

Rule updated successfully.
Body ()
Root Schema : Response
Type: object
Show Source
Back to Top

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"
      }
  ]
}
Back to Top