Skip to content

Check-out locks

A check-out lock tells your team you are editing a prop. A lock covers one lineage, which is every version of one prop. It expires on its own after its ttl_hours. AI agents use the same locks through the checkout_prop, checkin_prop and release_checkout MCP tools. For the user-facing workflow, see Check out a prop.

While you hold a lock, Prophouse enforces it in three places:

Action by someone else Result
A push that would add a new version to the lineage The item comes back with status locked. The rest of the batch commits. Pushes of files the library already stores are not affected.
POST /entries/{entry_id}/restore 409 LOCKED, unless the caller is a workspace owner or admin.
PATCH /entries/{entry_id} with object_id 409 LOCKED, unless the caller is a workspace owner or admin.

Your own pushes, restores and edits go through. The lock blocks pushes from owners and admins too. Only restores and object_id changes let an owner or admin through.

Method and path Scope Purpose
POST /locks write Check out, or extend your own lock
DELETE /locks/{lock_id} write Release a lock
GET /locks read List locks

A read-only API key gets 403 on POST and DELETE.

Terminal window
curl -X POST -H "Authorization: Bearer $PH_KEY" -H "Content-Type: application/json" \
-d '{"lineage_id": "guid:6F9619FF8B86D011B42D00C04FC964FF", "note": "Reworking LODs", "ttl_hours": 48}' \
https://api.prophouse.dev/api/v1/locks
Field Type Description
lineage_id string, required The entry’s lineage_id. Up to 200 characters.
note string 1 to 1,000 characters. Teammates see it next to the lock.
ttl_hours integer How long the lock lasts, from now. 1 to 720. Default 72.

201 response:

{
"lock": {
"id": 31,
"lineage_id": "guid:6F9619FF8B86D011B42D00C04FC964FF",
"holder": { "id": 7, "name": "<user>", "display_name": "Sam Rigger" },
"note": "Reworking LODs",
"base_object_id": 1880,
"created_at": "2026-07-25T12:00:00Z",
"expires_at": "2026-07-27T12:00:00Z",
"released_at": null,
"active": true
},
"checkout": {
"entry_id": 412,
"object_id": 1880,
"content_hash": "9f2c...e41a",
"blob_url": "/api/v1/blobs/9f2c...e41a",
"suggested_filename": "SM_Barrel_Rusty.uasset"
}
}

checkout describes the version to edit:

Field Description
entry_id The library entry for the lineage. null if no entry shows it.
object_id The current version.
content_hash The SHA-256 of that version’s file.
blob_url An API path that downloads the file with your bearer token. For a presigned URL, call GET /blobs/{content_hash}/url. See Downloads.
suggested_filename The entry name with unsafe characters replaced by _. Source files get their original extension, for example Barrel.fbx. An Unreal package with no source extension gets .uasset, or .umap for a level (World).

base_object_id on the lock records the version you started from. It starts as checkout.object_id. It moves when you push a new current version, restore a version, or change object_id yourself while you hold the lock. It stays put when someone else changes the current version, for example an admin restore. Compare it with the entry’s current object_id to see whether your starting point is stale. Locks created before this field existed have base_object_id: null.

To extend a lock, call POST /locks again for a lineage you already hold. The new expiry is ttl_hours from now. A note in the request replaces the old one. Without a note, the old note stays. The lock keeps its id and its original base_object_id, and no second lock.acquire event is recorded.

Error Cause
409 LOCKED Someone else holds an active lock. details.holder names them. details.lock is their lock.
404 LINEAGE_NOT_FOUND No version in the library has this lineage_id.
422 VALIDATION ttl_hours outside 1 to 720, an empty or too-long note, or a missing lineage_id.

There is no separate check-in call. To check in, push the edited file as a new version, then release the lock. On each manifest item, set:

  • stamped_lineage_id: the lock’s lineage_id.
  • stamped_base_hash: checkout.content_hash.
  • expected_face_object_id: the lock’s current base_object_id.
  • An entry block with make_face: true.

If the current version no longer matches expected_face_object_id, the commit fails with 409 STALE_FACE. details.actual_face_object_id is the version that is current now. Download it and merge your changes before you push again. If you leave out expected_face_object_id while you hold the lock, the check uses the lock’s base_object_id instead. A push from someone without a lock is checked only when it sends expected_face_object_id. See Push a new version.

Releases the lock and returns 204.

Error Cause
403 FORBIDDEN You are not the holder, a workspace owner or an admin.
404 NOT_FOUND No lock has this id.

Releasing a lock that is already released returns 204 and changes nothing. Releasing an expired lock whose released_at is still null records it as expired instead: released_at is set to the lock’s expires_at, and the activity log gets a lock.expire event with no actor. It returns 204.

Terminal window
curl -H "Authorization: Bearer $PH_KEY" \
"https://api.prophouse.dev/api/v1/locks?lineage_id=guid:6F9619FF8B86D011B42D00C04FC964FF&active=true"
Parameter Type Description
lineage_id string Only locks on this lineage.
active boolean true returns only live locks. false returns only released or expired ones. Omit it to get both.
limit integer 1 to 200. Default 50. There is no cursor.

Returns {"locks": [lock]}, newest first. Each lock has the shape shown under POST /locks. A lock past its expires_at shows active: false right away. Its released_at stays null until a later POST /locks, restore or object_id change on that lineage records the expiry. Prophouse then sets released_at to the expires_at time. Pushes do not record it.

Lock changes appear in the catalog change feed as entity lock. They also appear in the activity log as lock.acquire, lock.release and lock.expire. A lock.expire event has actor: null.