Skip to content
Start here

Routes

List Routes
GET/zones/{zone_id}/workers/routes
Get Route
GET/zones/{zone_id}/workers/routes/{route_id}
Create Route
POST/zones/{zone_id}/workers/routes
Update Route
PUT/zones/{zone_id}/workers/routes/{route_id}
Delete Route
DELETE/zones/{zone_id}/workers/routes/{route_id}
ModelsExpand Collapse
RouteListResponse = object { id, pattern, script }
id: string

Identifier.

maxLength32
pattern: string

Pattern to match incoming requests against. Learn more.

script: optional string

Name of the script to run if the route matches.

RouteGetResponse = object { id, pattern, script }
id: string

Identifier.

maxLength32
pattern: string

Pattern to match incoming requests against. Learn more.

script: optional string

Name of the script to run if the route matches.

RouteCreateResponse = object { id, pattern, script }
id: string

Identifier.

maxLength32
pattern: string

Pattern to match incoming requests against. Learn more.

script: optional string

Name of the script to run if the route matches.

RouteUpdateResponse = object { id, pattern, script }
id: string

Identifier.

maxLength32
pattern: string

Pattern to match incoming requests against. Learn more.

script: optional string

Name of the script to run if the route matches.

RouteDeleteResponse = object { id }
id: optional string

Identifier.

maxLength32