Docs

API reference · Access

Set the public paths of a guarded hostname against its reviewed origin and revision

PUT/v1/orgs/{org}/access/hostnames/{hostname}
Permission
access.protection.manage
Audit log
access.hostname.configure
Operation
access.hostnames.configure

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_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
zonestringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
originstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
publicPrefixesarray of stringyes0 to 32 items
revisionstring or nullyes

Response 200

FieldTypeRequiredNotes
idstringyesfor example "hostname_01h455vb4pex5vsknk084sn02q"
namestringyes
zonestringyesfor example "zone_01h455vb4pex5vsknk084sn02q"
originstringyesfor example "origin_01h455vb4pex5vsknk084sn02q"
applicationsarray of objectyes
applications[].idstringyesfor example "app_01h455vb4pex5vsknk084sn02q"
applications[].pathPrefixesarray of stringyes1 to 16 items
publicPrefixesarray of stringyes0 to 32 items
lapsedPublicPrefixesarray of stringyes0 to 32 items
revisionstring or nullyes