# PackageFile

One file of a package. Download it at `/v1/jobs/{id}/package/files/{path}`.

## Fields

- `media_type` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): A short name, such as a reaction's ID or a chemist's: 1 to 200 printable characters, not all spaces.
- `path` ([FilePath](/docs/types/file-path.md) (string, pattern), required): A file's path within a record or a package, such as `notebook/page-1.jpg`: relative, with no empty or `..` part and no control characters.
- `sha256` ([Sha256](/docs/types/sha256.md) (string, pattern `^[0-9a-f]{64}$`), required): A file's SHA-256 hash, as 64 lowercase hexadecimal characters. The API names every file by it.
- `size_bytes` (integer, at least 0, required)

## Used by

- [Package](/docs/types/package.md)
