Update the CMP connection settings
/system/v2/messaging/cmp
Platform support: MT
Token Cost: 2 tokens (low)
Full replacement of the CMP connection settings. cmp_mode must be
cmp_local, cmp_remote or empty. With cmp_local the submitted
cmp_url is replaced with the local CMP service URL; with
cmp_remote cmp_url is required. A trailing slash is stripped from
cmp_url.
When cmp_mode is set and either the URL or the API key changed, the
new credentials are verified
against the CMP service first; the settings are stored either way, but
the CMP configuration itself is only saved when the check succeeds.
Request
Responses
- 204
- 400
- 401
- 500
Settings updated (no body).
Input failed validation: the body is not valid JSON, cmp_mode is
not cmp_local, cmp_remote or empty, or cmp_mode is
cmp_remote and cmp_url is empty.
Missing or invalid X-User-Identity header.
The CMP service could not be validated with the submitted URL and
API key, or another unhandled server-side error occurred. When the
CMP service rejects the API key (HTTP 401), the error detail is
"Could not validate credentials."; for any other validation failure
it is "Failed to ping CMP service.". cmp_allowed_ips is stored
even when validation fails.