v1

latestOpenAPI 3.0.32026-07-22115106141.4 KB
Perforce Repository Import

Get Perforce import state

Retrieve the current state of the continuous Perforce import job for this repository, including the last imported changelist, error information, and running status.

get/repos/{repo_id}/p4-import-state

Query parameters

branch_refstring
Example:dv.branch.1

Ref ID of the branch to import to

p4_import_pathstring
Example://depot/main/...

Path in Perforce depot to import from

Response

Import state retrieved successfully

last_changelistinteger required

Last Perforce changelist number that was imported

last_import_unixinteger nullable

Unix timestamp of the last successful import

running_job_idstring nullable

ID of the currently running import job, if any

error_countinteger required

Number of consecutive errors encountered

last_errorstring nullable

Last error message encountered during import

last_error_unixinteger nullable

Unix timestamp of the last error

branch_refstring required

reference name of the branch being synced

p4_import_pathstring required

Perforce depot path being imported (e.g., //depot/main/...)

started_unixinteger nullable

Unix timestamp when the current job started running

Example response

{
  "branch_ref": "dv.branch.1"
}