CMS Tool API

CMS Tool API schema

Public API version 1.4.60.

Prompt Rewording

The website's own wording of the system's prompts, headings, subjects and messages, such as checkout labels, form prompts and email subjects. A rule replaces the original text everywhere on the website.

Endpoint URL

https://api.cms-tool.net/api/rewording

/api/rewording

Read and update the website's own wording of system prompts, headings, subjects and messages.

GET

List the system prompts with the website's wording, and its custom rules, or retrieve one rule by appending its ID to the path. Needs the rewording:read scope.

Query parameters

NameTypeExampleNotes
keywordstextexampleFilter results by keywords.
promptsectiontextexampleFilter results by section, as the list returns them. Custom rules are in My Custom Rules.
rewordedbooleantrueFilter results to prompts the website has reworded. Accepts true or 1.
custombooleantrueFilter results by whether the rule is for text that is not in the system's list of prompts. Accepts true or 1.
offsetint123Skip this many matching records before returning results.
pageSizeint123Limit the number of records returned; accepted values are 1 through 999, with 200 used otherwise.

POST

Add or change a rewording rule: promptoriginal (or the id of a rule) and promptrewrite, the new wording, or NULL to hide the text. delete true removes the rule. Needs the rewording:write scope and the seo permission.

Request content type: application/json

Request body fields

NameTypeExampleNotes
idint123Set the id value.
promptoriginaltextAdd to CartThe text to reword, exactly as the system shows it. Leave out punctuation at the end and any numbers the system inserts.
promptrewritetextAdd to BasketThe new wording, shown everywhere the original text appears. NULL hides the text.
deletebooleantrueSet the delete value. Accepts true or 1.

Data definitions

FieldTypeDescriptionFormatExample
promptrewritetextThe website's wording, shown in place of the original everywhere. NULL hides the text. Null when the website has no rule.
promptsectiontextThe section the prompt belongs to. A custom rule is in My Custom Rules.
promptfriendlytextA readable description of where the prompt is used.
customboolTrue for a rule for text that is not in the system's list of prompts.
idintID of the website's rule. Null for a system prompt the website has not reworded.
promptoriginaltextThe text the system shows, which the rule replaces.

Usage instructions and examples

List the system prompts with the website's wording, and its custom rules, with GET /api/rewording (reworded=true for only those the website has changed), or read one rule with GET /api/rewording/{id}. POST {"promptoriginal": "Add to Cart", "promptrewrite": "Add to Basket"} to add or change a rule; copy the original text exactly, without punctuation at the end or numbers the system inserts. NULL as the new wording hides the text. delete: true removes the rule. Changes need the seo permission.

Sample object

{"id": 321, "promptoriginal": "Add to Cart", "promptfriendly": "Add to Cart", "promptsection": "Checkout", "promptrewrite": "Add to Basket", "custom": false}

Machine-readable documentation

This documentation is also available as JSON or Markdown at the same URL. Request JSON with Accept: application/json or Markdown with Accept: text/markdown.