Skip to content

Add an API endpoint to upsert Hide and Reveal checkpoints#10134

Closed
Elimpizza wants to merge 2 commits into
feat/search-hide-revealfrom
feat/checkpoint-write-api
Closed

Add an API endpoint to upsert Hide and Reveal checkpoints#10134
Elimpizza wants to merge 2 commits into
feat/search-hide-revealfrom
feat/checkpoint-write-api

Conversation

@Elimpizza

Copy link
Copy Markdown

Stacked over: #10130
Stacked under:

Adds the h-side write path for Hide & Reveal checkpoints:

  • POST /api/checkpoints (h/views/api/checkpoints.py). Accepts { authority_provided_id, document_url, reveal_date } and upserts a checkpoint. Restricted to the LMS auth-client via a new Permission.API.CHECKPOINT_UPSERT (same predicate as the
    bulk API).
  • CheckpointService.upsert(...). Resolves the group by (authority, authority_provided_id), find-or-creates the Document
    from its URL, then upserts the root checkpoint for (group_id, document_id, previous_checkpoint_id=NULL), overwriting
    reveal_date.
  • Request schema (h/schemas/api/checkpoint.py), route, and a GroupNotFoundError -> 404 mapping.

@Elimpizza Elimpizza closed this Jun 16, 2026
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