API reference · Static hosting
Upload one file of a deployment's manifest, as raw bytes under its SHA-256
PUT
/v1/orgs/{org}/zones/{zone}/origins/{origin}/deployments/{deployment}/files/{sha256}- Permission
hosting.deployments.manage- Budget
- 10,000 requests in 3,600 s per organization, shared as
hosting.uploads - Request body
- at most 26,214,400 bytes
- Audit log
hosting.file.upload- Operation
hosting.files.upload
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
org | path | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
zone | path | string | yes | for example "zone_01h455vb4pex5vsknk084sn02q" |
origin | path | string | yes | for example "origin_01h455vb4pex5vsknk084sn02q" |
deployment | path | string | yes | for example "dep_01h455vb4pex5vsknk084sn02q" |
sha256 | path | string | yes | |
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
The raw bytes, as application/octet-stream.
Response 204
No body.