Edit Redirection

This API is used to edit redirection policy for website acceleration or file download service.

1. Request Definition

  • API URL
https://cdn-api.swiftfederation.com/v1.0/services/{serviceId}/redirections/{policyId}
  • Request Method
PUT
  • Request Header

Refer to HTTP Request Headers

  • Request Body

Request Body Data Format: JSON

Field Required Type Description
name Mandatory string Policy name for access control.
matchType Mandatory string Policy match type, could be "regex" or "prefix".
url Mandatory string Prefix or regex of url pattern.
redirectionURL Mandatory string Send an HTTP redirect if this policy matches.
statusCode Mandatory int HTTP response code to use if sending an HTTP redirect. Could be "301/302".
  • Request Body Example
{
    "name": "rd3001",
    "matchType": "regex",
    "url": "/*.js",
    "redirectionURL": "http://www.example.com/404.html",
    "statusCode": 302
}


2. Response Definition

  • Response Header

Refer to HTTP Response Headers

  • Response Body
No response body for this API.
© 2019 Conversant Solutions Pte Ltd. All rights reserved.            Updated 2018-12-28 03:05:55

results matching ""

    No results matching ""