workflows

Create Sync Operation

Accept a preview and return before any Git or resource work begins.

post/workspaces/{workspace_id}/workflows/sync/operations

Request

  • Base URL
    https://platform.tracecat.com/api
  • Auth
    • API key in cookie fastapiusersauth
    • or HTTP bearer

Path parameters

workspace_idstring uuid required

Request body

idstring uuid required
direction'push' | 'pull' required
compare_refstring nullable

Response

Successful Response

idstring uuid required
direction'push' | 'pull' required
status'queued' | 'running' | 'ready' | 'applying' | 'completed' | 'failed' | 'expired' required
stage'fetching' | 'preparing' | 'awaiting_confirmation' | 'applying' | 'finishing' | 'finished' required
created_atstring date-time required
expires_atstring date-time required
commit_shastring nullable
errorstring nullable
diff_countinteger
can_retryboolean
data_appliedboolean
preview_revisioninteger
state_revisioninteger

Changes

No recorded changes to this operation across all 1 revision of this API.