chore: update OpenAPI spec from monorepo (#277)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-05-28 03:20:57 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 63b73f57d4
commit a95178f8b3
+121
View File
@@ -26279,6 +26279,127 @@ paths:
summary: Create a preset from a messages request body
tags:
- Presets
/presets/{slug}/responses:
post:
description: >-
Creates a preset (or a new version of an existing one) from an inference request body. Only fields that overlap
with the preset config are persisted; other fields (e.g. `messages`, `stream`, `prompt`) are silently ignored.
operationId: createPresetsResponses
parameters:
- description: URL-safe slug identifying the preset. Created if it does not exist.
in: path
name: slug
required: true
schema:
description: URL-safe slug identifying the preset. Created if it does not exist.
example: my-preset
minLength: 1
type: string
requestBody:
content:
application/json:
example:
input: Hello!
instructions: You are a helpful assistant.
model: openai/gpt-5.4
schema:
$ref: '#/components/schemas/ResponsesRequest'
required: true
responses:
'200':
content:
application/json:
example:
data:
created_at: '2026-04-20T10:00:00Z'
creator_user_id: user_2dHFtVWx2n56w6HkM0000000000
description: null
designated_version:
config:
model: openai/gpt-5.4
created_at: '2026-04-20T10:00:00Z'
creator_id: user_2dHFtVWx2n56w6HkM0000000000
id: 550e8400-e29b-41d4-a716-446655440000
preset_id: 650e8400-e29b-41d4-a716-446655440001
system_prompt: You are a helpful assistant.
updated_at: '2026-04-20T10:00:00Z'
version: 1
designated_version_id: 550e8400-e29b-41d4-a716-446655440000
id: 650e8400-e29b-41d4-a716-446655440001
name: my-preset
slug: my-preset
status: active
status_updated_at: null
updated_at: '2026-04-20T10:00:00Z'
workspace_id: 750e8400-e29b-41d4-a716-446655440002
schema:
$ref: '#/components/schemas/CreatePresetFromInferenceResponse'
description: Preset created or updated successfully.
'400':
content:
application/json:
example:
error:
code: 400
message: Invalid request parameters
schema:
$ref: '#/components/schemas/BadRequestResponse'
description: Bad Request - Invalid request parameters or malformed input
'401':
content:
application/json:
example:
error:
code: 401
message: Missing Authentication header
schema:
$ref: '#/components/schemas/UnauthorizedResponse'
description: Unauthorized - Authentication required or invalid credentials
'403':
content:
application/json:
example:
error:
code: 403
message: Only management keys can perform this operation
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: Forbidden - Authentication successful but insufficient permissions
'404':
content:
application/json:
example:
error:
code: 404
message: Resource not found
schema:
$ref: '#/components/schemas/NotFoundResponse'
description: Not Found - Resource does not exist
'409':
content:
application/json:
example:
error:
code: 409
message: Resource conflict. Please try again later.
schema:
$ref: '#/components/schemas/ConflictResponse'
description: Conflict - Resource conflict or concurrent modification
'500':
content:
application/json:
example:
error:
code: 500
message: Internal Server Error
schema:
$ref: '#/components/schemas/InternalServerResponse'
description: Internal Server Error - Unexpected server error
security:
- apiKey: []
summary: Create a preset from a responses request body
tags:
- Presets
/providers:
get:
operationId: listProviders