Skip to content

Pull jobs

A pull job asks the Unreal plugin to bring props into a project with every dependency, laid out under a target folder. You create the job. An Unreal editor open on that project claims it, downloads the files, imports them and reports back. For the editor side, see Pending imports.

Method and path Scope Used by
POST /pull-jobs write You, to create a job
GET /pull-jobs read You or the editor, to list jobs
GET /pull-jobs/{job_id} read You or the editor, to read one job and its report
PATCH /pull-jobs/{job_id} with cancelled write You, to cancel a queued job
POST /pull-jobs/{job_id}/claim write The editor
POST /pull-jobs/{job_id}/heartbeat write The editor
GET /pull-jobs/{job_id}/closure read The editor
PATCH /pull-jobs/{job_id} with running, done, failed or cancelled and a claim_token write The editor

Every member can list and read every job in the workspace, with one exception: a status=queued listing leaves out other members’ agent delivery jobs.

Terminal window
curl -X POST -H "Authorization: Bearer $PH_KEY" -H "Content-Type: application/json" \
-d '{"target_project": "ColdStorage", "target_root": "/Game/Prophouse", "entries": [{"entry_id": 412}, {"entry_id": 88, "object_id": 1502}]}' \
https://api.prophouse.dev/api/v1/pull-jobs
Field Type Description
target_project string, required The Unreal project the job is for, 1 to 200 characters. The editor matches it against the plugin’s Project Key (blank = .uproject name) setting, or the project name when that setting is blank. The match is exact.
target_root string Destination folder: /Game or a folder below it, up to 500 characters. Each folder name may use only letters, digits, _ and -. Default /Game/Prophouse.
entries array [{entry_id, object_id?}], 1 to 1,000 items. object_id pins a specific version from the entry’s lineage. Omit it to pull the current version. Listing an entry twice with the same pin is allowed and counts once.
collection_id integer Pull every entry in a collection (up to 1,000) at its current version. Send exactly one of entries or collection_id.
delivery string manual (default) or agent. See Delivery.

Prophouse resolves the full dependency closure when it creates the job and saves it with the job. Later pushes do not change what a queued job delivers. Creating a job also does the following:

  • It marks each entry as pulled, so an admin can no longer hard-delete it.
  • It records one download.pull activity event per entry.
  • It adds target_project to projects if the name is new.

The response is 201 with the job detail plus warnings. A deprecated entry is still pulled and adds a warning: {"type": "deprecated_entry", "entry_id", "name", "message"}.

Error Cause
404 ENTRY_NOT_FOUND, 404 OBJECT_NOT_FOUND, 404 COLLECTION_NOT_FOUND Unknown id.
409 LINEAGE_CONFLICT A pinned object_id is not in that entry’s lineage, or the closure holds two versions of one prop.
422 VALIDATION Bad target_root. Both or neither of entries and collection_id. An empty entries list or an empty collection. More than 1,000 entries. The same entry with two different pins. A file in the closure has no valid Unreal asset name or /Game path. Download those through Downloads instead. A file’s destination under target_root would pass 500 characters or collide with another file. The closure has more than 5,000 files, or its completion report would exceed 2 MiB.

With manual delivery, the job appears under Pending imports in the Prophouse panel of every editor open on target_project. The list updates on the plugin’s background poll (the Enable background polling setting) or when someone clicks the refresh button next to the heading. Someone then clicks Import.

With agent delivery, the job goes to your own editors on target_project that have Accept agent imports turned on. They pick it up from their heartbeat and run it with no click. See Editor sessions. The MCP tool import_to_unreal creates jobs this way. While an agent job is queued, only the member who requested it sees it under Pending imports.

{
"id": 57,
"target_project": "ColdStorage",
"target_root": "/Game/Prophouse",
"requested_by": 7,
"claimed_by": null,
"status": "queued",
"delivery": "manual",
"failure_reason": null,
"engine_version": null,
"entry_count": 2,
"object_count": 9,
"total_bytes": 18874368,
"created_at": "2026-07-25T12:00:00Z",
"updated_at": "2026-07-25T12:00:00Z"
}

status is queued, claimed, running, done, failed or cancelled. requested_by and claimed_by are library user ids. engine_version is the claiming editor’s engine version. object_count and total_bytes count the saved closure.

The detail (GET /pull-jobs/{job_id}) adds entries: [{entry_id, object_id, name, entry_type, status}] and report_json. report_json is the editor’s report. It is null until the job finishes, and stays null for a failed job sent without one. An unknown id returns 404 JOB_NOT_FOUND.

Parameter Type Description
target_project string Exact project name.
status string One status value. Any other value returns 422 VALIDATION.
requested_by integer Library user id of the requester.
limit integer 1 to 200, default 50.
cursor string The previous page’s next_cursor.

Jobs come back newest first as {"jobs": [job], "next_cursor"}. next_cursor is null on the last page.

{ "status": "cancelled" }

Send this with PATCH /pull-jobs/{job_id}. You can cancel only a queued job (409 JOB_STATE otherwise). Only the requester or a workspace owner or admin can cancel it (403 FORBIDDEN otherwise). Do not send claim_token or failure_reason with this cancel. A cancel that carries a claim_token is the claimant’s cancel, described under Claim lifecycle.

  1. POST /pull-jobs/{job_id}/claim with {"project_key": "<target_project>", "engine_version": "5.8.0"}. engine_version must be major.minor.patch. Exactly one claimant wins. The response is the job detail plus a secret claim_token and warnings. Each file saved by an older engine than yours adds an older_engine warning. The claim is a lease of 60 minutes.
  2. GET /pull-jobs/{job_id}/closure returns the saved file list: {"job_id", "objects": [{object_id, content_hash, lineage_id, asset_class, asset_name, origin_path, blob_size, engine_version}], "total_objects", "total_bytes"}. Download each file through Downloads.
  3. PATCH /pull-jobs/{job_id} with {"status": "running", "claim_token"}. This renews the lease to 60 minutes.
  4. POST /pull-jobs/{job_id}/heartbeat with {"claim_token"} during long work. It renews the lease to 60 minutes from now and returns {"job_id", "status", "lease_expires_at"}.
  5. Finish with PATCH and {"status": "done", "claim_token", "report_json"}, or {"status": "failed", "claim_token", "failure_reason", "report_json"}. failure_reason is required for failed, up to 4,000 characters. report_json is optional for failed.
  6. To stop a job you hold, PATCH with {"status": "cancelled", "claim_token"} from claimed or running. failure_reason is optional, up to 4,000 characters, and is stored as the job’s failure_reason. report_json is not allowed on a cancel.

The status must move from claimed to running or cancelled, then from running to done, failed or cancelled (409 JOB_STATE otherwise). done, failed and cancelled are final. Only the claimant can send these PATCH updates (403 FORBIDDEN otherwise). A heartbeat from anyone else returns 409 JOB_STATE.

Claim error Cause
409 CONFLICT project_key is not the job’s target_project, or the job uses agent delivery and you are not the member who requested it (details.delivery is "agent").
409 JOB_STATE The job is no longer queued.
409 ENGINE_TOO_OLD Some files were saved by a newer engine than yours. details.objects lists them. The job stays queued.

If a lease expires, the job goes back to queued and the old claim_token stops working. A heartbeat or update with that token returns 409 JOB_STATE, or 403 FORBIDDEN on an update after another user has claimed the job.

The report lists every closure file exactly once:

{
"added": [{ "asset_name": "SM_Barrel_Rusty", "destination": "/Game/Prophouse/Meshes/SM_Barrel_Rusty", "content_hash": "<content_hash>", "lineage_id": "<lineage_id>", "action": "add" }],
"skipped_identical": [],
"conflicts": [],
"failed": []
}

Every item has asset_name, destination, content_hash (64 lowercase hex characters) and lineage_id. Each list adds one field:

List Extra field
added action: add or safe_overwrite
skipped_identical None
conflicts resolution: keep_local, overwrite or skip
failed error, up to 4,000 characters

asset_name, lineage_id and destination must match the closure and the destination Prophouse computed for each file. A done report must cover every closure file and have no failed items. A failed report can leave files out. Reports allow up to 5,000 items and 2 MiB, and unknown fields are rejected. Any mismatch returns 422 VALIDATION with details.issues.