Skip to content

docs(api): add fields query param to GET /v2/check-results/{checkId}#392

Merged
thebiglabasky merged 1 commit into
mainfrom
herve/check-results-fields-param
Jun 17, 2026
Merged

docs(api): add fields query param to GET /v2/check-results/{checkId}#392
thebiglabasky merged 1 commit into
mainfrom
herve/check-results-fields-param

Conversation

@thebiglabasky

Copy link
Copy Markdown
Contributor

Affected Components

  • Docs

Notes for the Reviewer

Documents the optional fields query parameter added to GET /v2/check-results/{checkId} in checkly/monorepo#2384, which lets clients request a sparse projection of check result fields.

What changed — three additions to api-reference/openapi.json:

  • fields query parameter on GET /v2/check-results/{checkId} (comma-separated list of allowed result fields)
  • response entries items become anyOf [CheckResult, CheckResultProjection]
  • new CheckResultProjection schema (all of its $refs already exist in the spec)

Why it's safe — the monorepo PR is merged and deployed, so the live spec at api.checklyhq.com/openapi.json (the source the nightly update-api-spec workflow syncs from) already contains these. I extracted the snippets directly from that live spec, so the edits are byte-identical to what the auto-sync would produce — this just brings the docs current ahead of the next scheduled run. The only intentionally-skipped difference vs. live is the endpoint description, where the docs already carry the HTML→Markdown-cleaned version that the sync script generates.

Validationmintlify openapi-check passes; the touched elements (fields param, entries, CheckResultProjection) match production exactly and all schema refs resolve. No .mdx or docs.json changes needed — the endpoint page already exists and is auto-rendered from the spec.

🤖 Generated with Claude Code

Documents the optional `fields` query parameter added in
checkly/monorepo#2384, which lets clients request a sparse projection
of check result fields.

Three additions to api-reference/openapi.json, mirroring the live
production spec (api.checklyhq.com/openapi.json) that the nightly
update-api-spec workflow syncs from:

- `fields` query parameter on GET /v2/check-results/{checkId}
- response `entries` items become anyOf [CheckResult, CheckResultProjection]
- new CheckResultProjection schema (all refs already present)

Brings the docs current ahead of the next auto-sync run. Validated with
mintlify openapi-check; the touched elements match production byte-for-byte.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@thebiglabasky thebiglabasky enabled auto-merge (squash) June 17, 2026 15:05
@mintlify

mintlify Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
checkly-422f444a 🟢 Ready View Preview Jun 17, 2026, 3:08 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@thebiglabasky thebiglabasky merged commit fc59a2f into main Jun 17, 2026
5 of 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