latestOpenAPI 3.1.02026-08-211,0251,3542.1 MB

b9cc757ca795

DatamateProjectBindings

Rebind By Path

Path-identified rebind — symmetric to PUT /by-remote for projects without a git remote (materialized sample scaffolds, fresh scratch dirs). Same FOR UPDATE + optimistic-concurrency semantics as its remote sibling, same both-sides authorization, same in-place mutation of the binding row.

Path-only bindings are scoped by user, so the FOR UPDATE lookup passes the caller's user_id — a coincidentally-matching path belonging to another user will simply 404.

put/datamate-project-bindings/by-path

Request body

project_pathstring required
target_datamate_idinteger required
expected_current_datamate_idinteger nullable

Response

Successful Response