Update SSL Certificate


This request changes the attributes of an SSL certificate.

Warning: changing the SSL configuration can break the HTTPS connection with the server.

Resource

PATCH /sslcertificates/<OID>

Where OID is the object ID of the SSL certificate.

Parameters

None

Payload

Fields

name Patch Operations

type

replace

domainnames

add, remove, replace submember

domainnames.domainname

replace

Response

None

Context

Authorization

Administrator

Errors

Example

Request
PATCH https://xelion.nl/api/v1/master/sslcertificates/1591405
Payload

change SSL certificate direct member

{
    "operations": [
        {
            "op": "replace",
            "path": "/type",
            "value": "LETS_ENCRYPT"
        }
    ]
}

add new domain name to SSL certificate, first add a new object with virtual id 1 and then set the submember(s) by adding replace operations on the virtual id '1'

{
    "operations": [
        {
            "op": "add",
            "path": "/domainnames/1"
        },
        {
            "op": "replace",
            "path": "/domainnames/1/domainname",
            "value": "www.xelion.nl"
        }
    ]
}

remove domain name from SSL certificate, <OID> is the oid of the domain

{
    "operations": [
        {
            "op": "remove",
            "path": "/domainnames/1726623"
        }
    ]
}

change domain name submember, <OID> is the oid of the domain

{
    "operations": [
        {
            "op": "replace",
            "path": "/domainnames/1726623/domainname",
            "value": "api.xelion.nl"
        }
    ]
}