POST /v1/policies/sync
Canonical policy sync endpoint.
POST /v1/sync
Alias endpoint with the same behavior and response contract as /v1/policies/sync.
Auth
Dashboard user session auth (not workspace API key).Idempotency
You can setIdempotency-Key header to make repeated CI retries safe.
Response patterns
Dry run:Junior developer workflow
- Run
dry_run=truefirst in CI. - Validate
diffoutput. - Apply with
dry_run=falseand idempotency key. - Fail the pipeline on
sync_conflictand rebase policy source.