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
| Name | Type | Example | Notes |
|---|---|---|---|
keywords | text | example | Filter results by keywords. |
promptsection | text | example | Filter results by section, as the list returns them. Custom rules are in My Custom Rules. |
reworded | boolean | true | Filter results to prompts the website has reworded. Accepts true or 1. |
custom | boolean | true | Filter results by whether the rule is for text that is not in the system's list of prompts. Accepts true or 1. |
offset | int | 123 | Skip this many matching records before returning results. |
pageSize | int | 123 | Limit 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
| Name | Type | Example | Notes |
|---|---|---|---|
id | int | 123 | Set the id value. |
promptoriginal | text | Add to Cart | The text to reword, exactly as the system shows it. Leave out punctuation at the end and any numbers the system inserts. |
promptrewrite | text | Add to Basket | The new wording, shown everywhere the original text appears. NULL hides the text. |
delete | boolean | true | Set the delete value. Accepts true or 1. |
Data definitions
| Field | Type | Description | Format | Example |
|---|---|---|---|---|
promptrewrite | text | The website's wording, shown in place of the original everywhere. NULL hides the text. Null when the website has no rule. | ||
promptsection | text | The section the prompt belongs to. A custom rule is in My Custom Rules. | ||
promptfriendly | text | A readable description of where the prompt is used. | ||
custom | bool | True for a rule for text that is not in the system's list of prompts. | ||
id | int | ID of the website's rule. Null for a system prompt the website has not reworded. | ||
promptoriginal | text | The text the system shows, which the rule replaces. |
Usage instructions and examples
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.