API reference · Origins and routes
Send a hostname's traffic to an origin
PUT/v1/orgs/{org}/zones/{zone}/routes/{hostname}
- Permission
origins.origins.manage- Audit log
origins.route.set- Operation
origins.routes.set
Parameters
| Name | In | Type | Required | Notes |
|---|
org | path | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
zone | path | string | yes | for example "zone_01h455vb4pex5vsknk084sn02q" |
hostname | path | string | yes | for example "hostname_01h455vb4pex5vsknk084sn02q" |
Idempotency-Key | header | string | no | One key per intended mutation. A retry with the key replays the recorded response instead of executing again; the key with another request answers 422 idempotency_key_reused. For example "01h455vb4pex5vsknk084sn02q" |
x-obhut-management-assignment | header | string | no | Select one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q" |
Request body
| Field | Type | Required | Notes |
|---|
origin | string | yes | for example "origin_01h455vb4pex5vsknk084sn02q" |
revision | string | no | Opaque revision: dot-joined counters. |
Response 200
| Field | Type | Required | Notes |
|---|
hostnameId | string | yes | for example "hostname_01h455vb4pex5vsknk084sn02q" |
zoneId | string | yes | for example "zone_01h455vb4pex5vsknk084sn02q" |
originId | string | yes | for example "origin_01h455vb4pex5vsknk084sn02q" |
revision | string | yes | Opaque revision: dot-joined counters. |
createdAt | string (date-time) | yes | UTC, ISO 8601. |
updatedAt | string (date-time) | yes | UTC, ISO 8601. |