# ProjectAgentSyncOperation

Fields, types, and constraints for ProjectAgentSyncOperation.

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

Released API schema for `ProjectAgentSyncOperation`.

## Fields and constraints

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | Yes | Minimum length: 1. Maximum length: 512. |
| `trackerId` | string | Yes | Minimum length: 1. Maximum length: 512. |
| `baseCommitSha` | string | Yes |  |
| `confirmedCommitSha` | string or null | Yes |  |
| `publishedCommitSha` | string or null | Yes |  |
| `publicationBranch` | string | Yes | Maximum length: 200. |
| `author` | object | Yes |  |
| `state` | `"pending"` · `"queued"` · `"leased"` · `"conflict"` · `"unavailable"` · `"published"` · `"committed"` · `"cancelled"` | Yes |  |
| `version` | integer | Yes |  |
| `diagnostics` | array of [ProjectAgentTrackerDiagnostic](/docs/reference/schemas/project-agent-tracker-diagnostic) | Yes |  |
| `conflicts` | array of [ProjectAgentSyncConflict](/docs/reference/schemas/project-agent-sync-conflict) | Yes |  |
| `completedBatches` | integer | Yes |  |
| `totalBatches` | integer | Yes |  |

## Full schema

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

## Related reference

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