From e09061bd37c6496685ea0fdabe1d4d01f1b659ad Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 18 Jan 2026 21:38:21 +0000 Subject: feat: Add attachedBy field to update tags endpoint (#2281) * feat: Add attachedBy field to updateTags endpoint This change allows callers to specify the attachedBy field when updating tags on a bookmark. The field defaults to "human" if not provided, maintaining backward compatibility with existing code. Changes: - Added attachedBy field to zManipulatedTagSchema with default "human" - Updated updateTags endpoint to use the specified attachedBy value - Created mapping logic to correctly assign attachedBy to each tag * fix(cli): migrate bookmark source in migration command * fix * reduce queries --------- Co-authored-by: Claude --- packages/open-api/karakeep-openapi-spec.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'packages/open-api') diff --git a/packages/open-api/karakeep-openapi-spec.json b/packages/open-api/karakeep-openapi-spec.json index 52c39be1..a1b9dfc4 100644 --- a/packages/open-api/karakeep-openapi-spec.json +++ b/packages/open-api/karakeep-openapi-spec.json @@ -1445,6 +1445,14 @@ }, "tagName": { "type": "string" + }, + "attachedBy": { + "type": "string", + "enum": [ + "ai", + "human" + ], + "default": "human" } } } @@ -1536,6 +1544,14 @@ }, "tagName": { "type": "string" + }, + "attachedBy": { + "type": "string", + "enum": [ + "ai", + "human" + ], + "default": "human" } } } -- cgit v1.2.3-70-g09d2