Sample bulk updates

This section summarizes some of the more useful searches you may want to run, along with the JSONPath syntax needed for the bulk search request, and sample replacement values.

Most of these searches match anywhere within the configuration. See the Contextual searches section if you need help searching more specific locations within the configuration. See the latest behavior and criteria options you can update within your configurations.

MatchJSONPath searchReplacement
Default origin hostname$.behaviors[?(@.name == 'origin')].options.hostname"www.example.com"
Any origin hostname set to old.example.com$..behaviors[?(@.name == 'origin')].options[?(@.hostname == 'old.example.com')].hostname"new.example.com"
Default caching TTL$.behaviors[?(@.name == 'caching')].options.defaultTtl"12h"
Any caching TTL value other than 1 day$..behaviors[?(@.name == 'caching')].options[?(@.defaultTtl != '1d')].defaultTtl"1d"
Any CP code$..behaviors[?(@.name == 'cpCode'].options.value.id12345
CP code set to 12345$..behaviors[?(@.name == 'cpCode'].options.value[?(@.id == 12345)].id54321
Edge Redirector, enabled or disabled$..behaviors[?(@.name == 'edgeRedirector')].options.enabledfalse
Forward rewrite, disabled$..behaviors[?(@.name == 'forwardRewrite'].options[?(@.enabled == false)].enabledtrue
SureRoute test URL$..behaviors[?(@.name == 'sureRoute')].options.testObjectUrl"/new-object"
ID of custom behavior named customized$..behaviors[?(@.name == 'customBehavior')].options[?(@.name == 'customized')].behaviorId"myCustomRedirect"
Change one of the path match values from /catalog to /shop$..criteria[?(@.name == 'path')].options.value[?(@ == '/catalog')]"/shop"

πŸ‘

All JSONPath expressions evaluate within the rules section of a property configuration, available as JSON from PAPI's Get a rule tree operation.