Authorization: Bearer ********************
{
"type": "gotipath",
"label": "Gotipath CDN",
"description": "New Gotipath CDN",
"origin_type": "custom",
"domain_type": "custom",
"domain": "cdn234.sohel.pro",
"acceleration_type": "static",
"is_http2": false,
"is_http3": false,
"is_livestream": false,
"is_redirect_http_to_https": false,
"enable_ssl": true,
"le_issue": false,
"host_header": "hello.com",
"origin": {
"label": "Gotipath",
"url": "gotipath.com",
"type": "custom",
"port": 80,
"protocol": "http"
}
}
curl --location --request POST 'https://apistream.gotipath.com/v1/distributions' \
--header 'X-Auth-ClientId;' \
--header 'X-Auth-LibraryId;' \
--header 'X-Auth-ApiKey;' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "gotipath",
"label": "Gotipath CDN",
"description": "New Gotipath CDN",
"origin_type": "custom",
"domain_type": "custom",
"domain": "cdn234.sohel.pro",
"acceleration_type": "static",
"is_http2": false,
"is_http3": false,
"is_livestream": false,
"is_redirect_http_to_https": false,
"enable_ssl": true,
"le_issue": false,
"host_header": "hello.com",
"origin": {
"label": "Gotipath",
"url": "gotipath.com",
"type": "custom",
"port": 80,
"protocol": "http"
}
}'
{
"status": 0,
"message": "string",
"result": {
"id": "string",
"delivery_domain": "string",
"acme_challenge_domain": null,
"delivery_domain_ttl": 0,
"acme_challenge_domain_ttl": 0,
"is_cname_valid": true,
"is_acme_challenge_valid": true,
"customer_id": "string",
"certificate_id": null,
"label": "string",
"description": "string",
"origin_type": "string",
"cdn_type": "string",
"domain": "string",
"domain_type": "string",
"acceleration_type": "string",
"enable_ssl": true,
"is_http2": true,
"le_issue": true,
"is_redirect_http_to_https": true,
"status": "string",
"origins": [
{
"id": "string",
"distribution_id": "string",
"type": "string",
"label": "string",
"url": "string",
"protocol": "string",
"load_balancer_type": "string"
}
],
"host_header": "string",
"sni": "string",
"certificate": null,
"created_by": "string",
"updated_by": null,
"created_at": "string",
"updated_at": "string"
},
"success": true
}