Skip to content

fix(api): describe younify refresh as the apps call it - #1050

Merged
StefanFriptu merged 1 commit into
masterfrom
fix/younify-refresh-contract
Oct 29, 2026
Merged

StefanFriptu merged 1 commit into
masterfrom
fix/younify-refresh-contract

Conversation

@StefanFriptu

Copy link
Copy Markdown
Collaborator

The younify refresh contract now describes the endpoint the way clients call it and the way it answers.

  • New refreshService route: POST /younify/users/refresh with the service in the body, { service_id, skip_sync? }. service_id is required.
  • Optional { skip_sync? } body on refresh and refreshAll. skip_sync: true marks the service as synced now, so older history is ignored.
  • 201, not 204. The endpoint has always answered 201. A client checking status === 204 treats every successful refresh as a failure, and will now get a type error pointing at that check.
  • all_data docs: a full re-sync needs the segment to be true. Any other value is an incremental re-sync.

Breaking for typed clients only through the status change, which corrects the contract to what the server already returns.

Checked with publish:check and openapi:validate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T10:51:44.519808Z 1c72e7c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c72e7ca9f

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Adds POST /younify/users/refresh with a required service_id in the body, an
optional skip_sync body on every refresh route, and a 201 response, which is
what the endpoint answers. all_data is documented as true/false.
@StefanFriptu
StefanFriptu force-pushed the fix/younify-refresh-contract branch from 1c72e7c to fca998d Compare October 29, 2026 11:55
@StefanFriptu
StefanFriptu merged commit 28e57aa into master Oct 29, 2026
6 checks passed
@StefanFriptu
StefanFriptu deleted the fix/younify-refresh-contract branch October 29, 2026 13:05
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