Skip to content

Commit d5e68db

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1048)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent ebd5b79 commit d5e68db

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44217,7 +44217,7 @@ paths:
4421744217
- 'API Keys'
4421844218
x-speakeasy-name-override: 'get'
4421944219
patch:
44220-
description: "Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).\n\n<Warning>\nYou can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.\n</Warning>"
44220+
description: "Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).\n\nSet `workspace_id` to move the key to another workspace. The key keeps its value, and any other fields in the same request are applied atomically with the move. Guardrail selections move with the key; other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. A move into or out of a HIPAA workspace is refused with `403`. In an organization, if the key's creator is not a member of a non-default target workspace, the request fails with `409`; add them to the workspace first.\n\n<Warning>\nThe request body accepts only the fields listed below, and unrecognized fields are ignored. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.\n</Warning>"
4422144221
operationId: 'updateKeys'
4422244222
parameters:
4422344223
- description: 'The hash identifier of the API key to update'
@@ -44275,6 +44275,11 @@ paths:
4427544275
description: 'New name for the API key'
4427644276
example: 'Updated API Key Name'
4427744277
type: 'string'
44278+
workspace_id:
44279+
description: 'Move the API key to this workspace. The key keeps its value; guardrail selections move with it, while other workspace-scoped settings (presets, BYOK keys, broadcast destinations, routing rules) do not. Sending the key''s current workspace is a no-op.'
44280+
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
44281+
format: 'uuid'
44282+
type: 'string'
4427844283
type: 'object'
4427944284
required: true
4428044285
responses:
@@ -44518,7 +44523,7 @@ paths:
4451844523
code: 400
4451944524
message: 'Invalid request parameters'
4452044525
no_update_fields:
44521-
description: 'Returned when the body contains none of the accepted fields, for example `{"workspace_id": "..."}`. `workspace_id` can''t be changed through the API.'
44526+
description: 'Returned when the body contains none of the accepted fields, for example `{"label": "..."}`.'
4452244527
summary: 'No accepted fields in the request body'
4452344528
value:
4452444529
error:
@@ -44537,6 +44542,16 @@ paths:
4453744542
schema:
4453844543
$ref: '#/components/schemas/UnauthorizedResponse'
4453944544
description: 'Unauthorized - Authentication required or invalid credentials'
44545+
'403':
44546+
content:
44547+
application/json:
44548+
example:
44549+
error:
44550+
code: 403
44551+
message: 'Only management keys can perform this operation'
44552+
schema:
44553+
$ref: '#/components/schemas/ForbiddenResponse'
44554+
description: 'Forbidden - Authentication successful but insufficient permissions'
4454044555
'404':
4454144556
content:
4454244557
application/json:
@@ -44547,6 +44562,16 @@ paths:
4454744562
schema:
4454844563
$ref: '#/components/schemas/NotFoundResponse'
4454944564
description: 'Not Found - Resource does not exist'
44565+
'409':
44566+
content:
44567+
application/json:
44568+
example:
44569+
error:
44570+
code: 409
44571+
message: 'The API key creator is not a member of the target workspace. Add them to the workspace, then retry.'
44572+
schema:
44573+
$ref: '#/components/schemas/ConflictResponse'
44574+
description: 'Conflict - Resource conflict or concurrent modification'
4455044575
'429':
4455144576
content:
4455244577
application/json:

0 commit comments

Comments
 (0)