You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d5e68db
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/in.openapi.yaml
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44217,7 +44217,7 @@ paths:
44217
44217
- 'API Keys'
44218
44218
x-speakeasy-name-override: 'get'
44219
44219
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>"
44221
44221
operationId: 'updateKeys'
44222
44222
parameters:
44223
44223
- description: 'The hash identifier of the API key to update'
@@ -44275,6 +44275,11 @@ paths:
44275
44275
description: 'New name for the API key'
44276
44276
example: 'Updated API Key Name'
44277
44277
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'
44278
44283
type: 'object'
44279
44284
required: true
44280
44285
responses:
@@ -44518,7 +44523,7 @@ paths:
44518
44523
code: 400
44519
44524
message: 'Invalid request parameters'
44520
44525
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": "..."}`.'
44522
44527
summary: 'No accepted fields in the request body'
44523
44528
value:
44524
44529
error:
@@ -44537,6 +44542,16 @@ paths:
44537
44542
schema:
44538
44543
$ref: '#/components/schemas/UnauthorizedResponse'
44539
44544
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'
44540
44555
'404':
44541
44556
content:
44542
44557
application/json:
@@ -44547,6 +44562,16 @@ paths:
44547
44562
schema:
44548
44563
$ref: '#/components/schemas/NotFoundResponse'
44549
44564
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'
0 commit comments