Edit Domain
This API is used to edit website acceleration domain.
1. Request Definition
- API URL
https://cdn-api.swiftfederation.com/v1.0/domains/{serviceId}
- Request Method
PUT
- Request Header
Refer to HTTP Request Headers
- Request Body
Request Body Data Format: JSON
Field | Required | Type | Description |
---|---|---|---|
originUrl | Mandatory | string | IP or domain name of origin server. |
originProtocol | Optional | string | Http/Https protocol that edge server will use to fetch contents from origin server. Value should be http, https or same_as_client. It will not change origin protocol if pass null or do not pass this field. |
streamingService | Optional | boolean | To indicate if need to combine multiple requests as one request to origin server. true: Enabled, false: Disabled. Default is false. |
http2 | Optional | boolean | Enable HTTP/2 will allow client connect CDN by HTTP/2. Note: Please configure SSL certificate before you use HTTP/2. true: Enabled, false: Disabled. Default is false.If the value is not set, the default value will be used. |
redirectHttpToHttps | Optional | boolean | Whether redirect all plain HTTP requests to HTTPS. true: Enabled, false: Disabled. Default is false. If the value is not set, the default value will be used. |
active | Optional | boolean | To indicate if service is enabled or disabled. true: Enabled, false: Disabled. Default is true. |
- Request Body Example
{
"originUrl": "origin2.website2.com",
"streamingService": true,
"http2":true,
"redirectHttpToHttps":true,
"active": true
}
2. Response Definition
- Response Header
Refer to HTTP Response Headers
- Response Body
No response body for this API.