Update a payment page
Changes a payment-page pattern or turns it off with enabled: false. Only the fields you send are changed, and the inventory is refreshed afterwards.
Requires the manager role on the website and the compliance plan feature.
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
pageId*stringThe payment page's id.
application/json- body
Only the fields you send are changed.
name?stringNew display name.
1 <= length <= 255urlPattern?stringNew pattern to match page URLs against.
1 <= length <= 1024patternType?PatternTypeHow urlPattern is read. glob uses * wildcards and is the default. regex is a regular expression.
"glob""regex"enabled?booleanTurn the pattern on or off.
A URL pattern that marks pages as taking payment.
application/json- response
id*stringworkspaceId*stringwebsiteId*stringname*stringDisplay name.
urlPattern*stringPattern matched against the page URL a script loads on.
patternType*PatternTypeHow urlPattern is read. glob uses * wildcards and is the default. regex is a regular expression.
"glob""regex"enabled*booleanA disabled pattern puts nothing in PCI scope.
createdAt*stringdate-timeupdatedAt*stringdate-timecurl -X PATCH 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/compliance/payment-pages/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "workspaceId": "string", "websiteId": "string", "name": "Checkout", "urlPattern": "https://shop.example.com/checkout/*", "patternType": "glob", "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}