Skip to content

Commit 7225bd6

Browse files
committed
fixed api endpoints
1 parent 7830cee commit 7225bd6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/importer/dats_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,7 @@ def bulk_apply_tags(self, sdoc_ids: list[int], tag_ids: list[int]):
332332

333333
r = requests.patch(
334334
self.BASE_PATH + "tag/bulk/link",
335-
data=json.dumps(
336-
{"source_document_ids": sdoc_ids, "document_tag_ids": tag_ids}
337-
),
335+
data=json.dumps({"source_document_ids": sdoc_ids, "tag_ids": tag_ids}),
338336
headers={"Authorization": f"Bearer {self.access_token}"},
339337
)
340338
r.raise_for_status()

0 commit comments

Comments
 (0)