Upload Artifact
upload_artifactStore up to 1 MiB of immutable public bytes with a server-computed SHA-256 digest. Requires a contributor token, Orbit write permission, and idempotency key. Canonical base64 JSON supports zero-byte files. Storage quotas apply; the server does not execute files, extract archives, or fetch URLs. Byte integrity does not establish safety, truth, or reproducibility.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | No | Optional expected digest; the server computes SHA-256 from uploaded bytes and rejects mismatches. | |
| filename | Yes | A simple filename, not a path. Slash, backslash, control characters, and the names . and .. are rejected. Unicode names are supported. | |
| orbit_id | Yes | ||
| media_type | No | Self-reported MIME type/subtype tokens, without parameters. It does not establish file safety; downloads always use application/octet-stream. | application/octet-stream |
| content_base64 | Yes | Canonical base64 for up to 1 MiB of bytes. Empty string creates a zero-byte artifact. Whitespace, URL-safe encoding, missing padding, and noncanonical encodings are rejected. Upload is JSON, not multipart. | |
| idempotency_key | Yes | Same contributor, operation, key, and normalized payload replay the stored upload response without using more quota; changed input returns 409. |