Skip to content

Document usage limits policy reset fields in OpenAPI spec - #546

Closed
itsthusharashenoi wants to merge 338 commits into
openai:mainfrom
Portkey-AI:fix/usage-limits-list-periodic-reset
Closed

Document usage limits policy reset fields in OpenAPI spec#546
itsthusharashenoi wants to merge 338 commits into
openai:mainfrom
Portkey-AI:fix/usage-limits-list-periodic-reset

Conversation

@itsthusharashenoi

Copy link
Copy Markdown

Updates the OpenAPI spec to match what the usage limits list and get APIs already return.

Related backend fix: albus#2165 — list now returns the same policy fields as get (including periodic_reset, credit_limit, conditions, etc.) by passing optional select in the list controller.

What changed
Added three missing fields to UsageLimitsPolicy in openapi.yaml:

  • periodic_reset_days
  • next_usage_reset_at
  • last_reset_at

List and get both use this schema, but these reset-related fields were returned by the API and not documented.

Why
Customers and internal docs should reflect the real API response. The albus PR fixes list behavior; this PR keeps the public spec in sync for the reset fields that were missing.

vrushankportkey and others added 30 commits October 15, 2024 10:23
overhaul auth schema for inference APIs
Update Virtual Key response structure
add parameters & fine-tuning description update
feat: SDK example for log export endpoints
sd and others added 26 commits April 13, 2026 18:52
…ge-apis

Chore/add mcp connection manage apis
chore: add custom_host support integration models
feat: add api key rotation policy and update
…nges

feat: scim group mappings endpoints definitions
Adds the optional pricing_adjustments field to CreateIntegrationRequest,
UpdateIntegrationRequest, and IntegrationDetailResponse, plus the new
PricingAdjustments and PricingMultiplier component schemas. The multiplier
keys mirror the pricing keys in the Portkey Models database.
Add pricing_adjustments to integrations API
- Added support for secret mappings in MCP integration requests and responses, allowing dynamic resolution of secrets from secret references.
- Introduced a new value_format field to specify the format of secret values (string or json) for better handling of structured objects.
…rmat-mcp

Enhance OpenAPI schema for MCP integrations
feat: add default config slug in workspace
Add periodic_reset_days, next_usage_reset_at, and last_reset_at to
UsageLimitsPolicy so list and get responses match the documented schema.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copy link
Copy Markdown
Contributor

Looks like this PR took a wrong turn at the fork 🍴 and wandered upstream. The intended Portkey change landed in Portkey-AI#144, while this branch brings the whole Portkey spec along for the ride. Closing this accidental detour—safe travels! 🚂

@patrickdavidryan6-sys patrickdavidryan6-sys 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.

Approved

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.