Skip to content

fix: send force_full_sync as query param instead of body#5

Merged
orhanrauf merged 1 commit intomainfrom
fix/force-full-sync-query-param
Mar 30, 2026
Merged

fix: send force_full_sync as query param instead of body#5
orhanrauf merged 1 commit intomainfrom
fix/force-full-sync-query-param

Conversation

@orhanrauf
Copy link
Copy Markdown
Member

Summary

  • The backend POST /source-connections/{id}/run endpoint declares force_full_sync as a query parameter, but the CLI was sending it in the JSON request body where FastAPI silently ignores it.
  • This meant airweave sources sync <id> --force had no effect -- every sync was incremental.
  • Fixed by passing force_full_sync as a query parameter (?force_full_sync=true) instead of in the body.

Test plan

  • Run airweave sources sync <id> --force and verify the request hits ?force_full_sync=true
  • Run airweave sources sync <id> (without --force) and verify no query param is sent
  • Confirm the triggered sync is actually a full re-sync (not incremental)

The backend /run endpoint declares force_full_sync as a Query parameter,
but the CLI was sending it in the JSON body where it was silently ignored.
@orhanrauf orhanrauf merged commit 3049f71 into main Mar 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant