Docs

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

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
zonepathstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
hostnamepathstringyesfor example "hostname_01h455vb4pex5vsknk084sn02q"
Idempotency-KeyheaderstringnoOne 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-assignmentheaderstringnoSelect 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

FieldTypeRequiredNotes
originstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
revisionstringnoOpaque revision: dot-joined counters.

Response 200

FieldTypeRequiredNotes
hostnameIdstringyesfor example "hostname_01h455vb4pex5vsknk084sn02q"
zoneIdstringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
originIdstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
revisionstringyesOpaque revision: dot-joined counters.
createdAtstring (date-time)yesUTC, ISO 8601.
updatedAtstring (date-time)yesUTC, ISO 8601.