Skip to main content
POST
/
repos
/
{repo_id}
/
p4-import-state
/
mark-stopped
Mark P4 import as stopped
curl --request POST \
  --url https://api.diversion.dev/v0/repos/{repo_id}/p4-import-state/mark-stopped \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "last_changelist": 1,
  "last_import_unix": 123,
  "running_job_id": "<string>",
  "error_count": 0,
  "last_error": "<string>",
  "last_error_unix": 123
}
'
{
  "status": 123,
  "detail": "<string>",
  "title": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

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.

Required string length: 3 - 128
Example:

"example_id"

Body

application/json

Details of a Perforce continuous import job

last_changelist
integer

Last Perforce changelist number that was imported

Required range: x >= 0
last_import_unix
integer | null

Unix timestamp of the last successful import

running_job_id
string | null

ID of the currently running import job, if any

error_count
integer
default:0

Number of consecutive errors encountered

last_error
string | null

Last error message encountered during import

last_error_unix
integer | null

Unix timestamp of the last error

Response

Job marked as stopped successfully