Bulk Replace Certificate Attachments by Domain
This API is used to replace certificate attachments when old certificate will be expired. when the old certificate has attached to many domains, it can help migrate domain attachments to new certificate easily.
1. Request Definition
- API URL
https://cdn-api.swiftfederation.com/v3.0/attachments/bulk_replace
- Request Method
POST
- Request Header
Refer to HTTP Request Headers
- Request Body
Request Body Data Format: JSON
Field | Required | Type | Description |
---|---|---|---|
domainNames | Mandatory | int[] | Array of domain names whose attachment will be replaced from old certificate to new certificate. |
oldCertificateId | Mandatory | int | Old certificate id. |
newCertificateId | Mandatory | int | New certificate id. |
- Request Body Example
{
"domainNames": ["foo.example.com","bar.example.com"],
"oldCertificateId": 123,
"newCertificateId": 321
}
2. Response Definition
- Response Header
Refer to HTTP Response Headers
- Response Body
No response body for this API.