Update P4 import state
Initialize or update the state of a continuous Perforce import job after manual initial import. Creates or updates a P4ImportJob record tracking the last imported changelist for incremental syncing.
Documentation Index
Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
This API uses OAuth 2 with the implicit grant flow
Path Parameters
The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
3 - 128"example_id"
Body
Update the state of a Perforce import job. Used both for manual initial setup and for recording progress during continuous import.
Ref ID of the branch to import to
1 - 128"dv.branch.1"
Path in Perforce depot to import from
1 - 1024"//depot/main/..."
Last Perforce changelist number that was imported
x >= 0Unix timestamp of the last successful import
Optional commit reference for the commit created from last_changelist. When provided, a P4CommitMapping is recorded to track the CL-to-commit relationship.
1 - 128"dv.commit.12345"
Response
Import state updated successfully
Current state of the Perforce continuous import job
Last Perforce changelist number that was imported
x >= 0Number of consecutive errors encountered
reference name of the branch being synced
"dv.branch.1"
Perforce depot path being imported (e.g., //depot/main/...)
Unix timestamp of the last successful import
ID of the currently running import job, if any
Last error message encountered during import
Unix timestamp of the last error
Unix timestamp when the current job started running

