Skip to main content
PUT
Replace delivery rule

Authorizations

Authorization
string
header
required

Project API access key.

Aptranet-Secret
string
header
required

Current secret for the access key.

Query Parameters

distribution
integer
required
Required range: x >= 1
rule
integer
required
Required range: x >= 1

Body

application/json
name
string
required
Maximum string length: 255
pattern
string
required

Path or expression starting with / or ^/. No hostname or whitespace.

Maximum string length: 300
weight
integer
default:1
Required range: 0 <= x <= 100000
active
boolean
default:true
origin_protocol
enum<string>
Available options:
,
INHERIT,
HTTP,
HTTPS,
MATCH
options
object

Response

Successful response.

name
string
required
Maximum string length: 255
pattern
string
required

Path or expression starting with / or ^/. No hostname or whitespace.

Maximum string length: 300
weight
integer
default:1
Required range: 0 <= x <= 100000
active
boolean
default:true
origin_protocol
enum<string>
Available options:
,
INHERIT,
HTTP,
HTTPS,
MATCH
options
object
id
integer
Required range: x >= 1
rule_type
integer