# ProjectAgentUpload

Fields, types, and constraints for ProjectAgentUpload.

Canonical: https://commentary.dev/docs/reference/schemas/project-agent-upload

Released API schema for `ProjectAgentUpload`.

## Fields and constraints

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Minimum length: 1. Maximum length: 512. |
| `workspaceId` | string | Yes | Minimum length: 1. Maximum length: 512. |
| `bytes` | integer | Yes |  |
| `receivedBytes` | integer | Yes |  |
| `maxChunkBytes` | integer | Yes |  |
| `sha256` | string | Yes |  |
| `state` | `"uploading"` · `"validating"` · `"complete"` · `"expired"` · `"failed"` · `"canceled"` | Yes |  |
| `expiresAt` | string | Yes |  |
| `manifestSha256` | string | Yes |  |
| `receivedChunks` | array of object | Yes |  |
| `bundle` | [ProjectAgentUploadBundle](/docs/reference/schemas/project-agent-upload-bundle) or null | Yes |  |

## Full schema

[Download this schema](/docs/reference/schemas/project-agent-upload.json) or use the [complete OpenAPI document](/docs/reference/openapi.json) to resolve all references.

## Related reference

[Browse API endpoints](/docs/reference/api-operations).
