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 d6e1e9e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/out.openapi.yaml
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -44741,7 +44741,7 @@ paths:
44741
44741
- 'API Keys'
44742
44742
x-speakeasy-name-override: 'get'
44743
44743
patch:
44744
-
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>"
44744
+
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>"
44745
44745
operationId: 'updateKeys'
44746
44746
parameters:
44747
44747
- description: 'The hash identifier of the API key to update'
@@ -44800,6 +44800,11 @@ paths:
44800
44800
description: 'New name for the API key'
44801
44801
example: 'Updated API Key Name'
44802
44802
type: 'string'
44803
+
workspace_id:
44804
+
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.'
44805
+
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
44806
+
format: 'uuid'
44807
+
type: 'string'
44803
44808
type: 'object'
44804
44809
required: true
44805
44810
responses:
@@ -45043,7 +45048,7 @@ paths:
45043
45048
code: 400
45044
45049
message: 'Invalid request parameters'
45045
45050
no_update_fields:
45046
-
description: 'Returned when the body contains none of the accepted fields, for example `{"workspace_id": "..."}`. `workspace_id` can''t be changed through the API.'
45051
+
description: 'Returned when the body contains none of the accepted fields, for example `{"label": "..."}`.'
45047
45052
summary: 'No accepted fields in the request body'
45048
45053
value:
45049
45054
error:
@@ -45062,6 +45067,16 @@ paths:
45062
45067
schema:
45063
45068
$ref: '#/components/schemas/UnauthorizedResponse'
45064
45069
description: 'Unauthorized - Authentication required or invalid credentials'
45070
+
'403':
45071
+
content:
45072
+
application/json:
45073
+
example:
45074
+
error:
45075
+
code: 403
45076
+
message: 'Only management keys can perform this operation'
45077
+
schema:
45078
+
$ref: '#/components/schemas/ForbiddenResponse'
45079
+
description: 'Forbidden - Authentication successful but insufficient permissions'
45065
45080
'404':
45066
45081
content:
45067
45082
application/json:
@@ -45072,6 +45087,16 @@ paths:
45072
45087
schema:
45073
45088
$ref: '#/components/schemas/NotFoundResponse'
45074
45089
description: 'Not Found - Resource does not exist'
45090
+
'409':
45091
+
content:
45092
+
application/json:
45093
+
example:
45094
+
error:
45095
+
code: 409
45096
+
message: 'The API key creator is not a member of the target workspace. Add them to the workspace, then retry.'
45097
+
schema:
45098
+
$ref: '#/components/schemas/ConflictResponse'
45099
+
description: 'Conflict - Resource conflict or concurrent modification'
0 commit comments