Route object patches by node id

This commit is contained in:
HumbleTurtle
2026-05-22 22:53:51 -03:00
parent ddab2dccc8
commit 58162f3f59
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7693,7 +7693,7 @@ def guarded_node_patch(args):
payload[key] = args[key]
result = request_project_write(
"PATCH",
f"/v1/projects/{project_id}/nodes/{urllib.parse.quote(node_id, safe='')}",
f"/v1/projects/{project_id}/nodes/{urllib.parse.quote(node_id, safe='')}/patch",
payload,
project_id,
f"guarded patch node {existing.get('full_path') or node_id}",
+1 -1
View File
@@ -304,7 +304,7 @@ def test_mutation_tools_reject_path_and_patch_by_node_id(mod):
"set": {"metadata": {"status": "active"}},
})
assert patched["id"] == "node-123"
assert writes[-1][1] == "/v1/projects/project-1/nodes/node-123"
assert writes[-1][1] == "/v1/projects/project-1/nodes/node-123/patch"
archived = mod.archive_node_by_path({"node_id": "node-123"})
assert archived["archived"] is True