In Progress CPANEL-42541 - ForceSSL API shows error in successful call

jimlongo

Well-Known Member
Mar 20, 2008
289
24
68
When I call the API with a request to
call
Code:
/json-api/cpanel?cpanel_jsonapi_apiversion=3&cpanel_jsonapi_user=permission2&cpanel_jsonapi_module=SSL&cpanel_jsonapi_func=toggle_ssl_redirect_for_domains&domains=subdomain.xyz.xyz&state=1
$response
Code:
{
    "module": "SSL",
    "apiversion": 3,
    "result": {
        "messages": null,
        "status": 1,
        "metadata": {
            "transformed": 1
        },
        "errors": [
            "The event UAPI::SSL::toggle_ssl_redirect_for_domains was handled successfully."
        ],
        "data": [
            1
        ],
        "warnings": null
    },
    "func": "toggle_ssl_redirect_for_domains"
}
The errors property is getting caught by my validation code.
I've never seen an error before with status:1
 
Last edited by a moderator: