Aleph Alpha Use Cases API

**Usecases (Applications)** Usecases are full-stack end to end AI applications.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /usecases List use cases · List all usecases #
Ask an LLM
“Which use cases have I created?”
“Can I filter use cases by project or label?”
Tell an agent
List all my use cases.
List use cases matching {filter}.
POST /usecases Create a use case · Create a new usecase #
Ask an LLM
“How do I create a new use case?”
“Can a new use case be made public?”
Tell an agent
Create a use case named {name} described as {description}.
Create use case {name} in project {projectId} with labels {labels}.
GET /usecases/{usecaseID} Get a use case · Get usecase by ID #
Ask an LLM
“What are the details of one use case?”
“Can I look up a use case by its ID?”
Tell an agent
Get use case {usecaseID}.
Show me the details of use case {usecaseID}.
PUT /usecases/{usecaseID} Replace a use case · Update a usecase #
Ask an LLM
“How do I overwrite a use case's name and description?”
“Can I change a use case's project?”
Tell an agent
Replace use case {usecaseID} with name {name} and description {description}.
Overwrite use case {usecaseID} in project {projectId}.
DELETE /usecases/{usecaseID} Delete a use case · Delete a usecase #
Ask an LLM
“Can I delete a use case that is still active?”
“What deployment status must a use case have before I can delete it?”
Tell an agent destructive · confirm first
Delete use case {usecaseID}.
Remove the use case {usecaseID} that is undeployed or in error.
PATCH /usecases/{usecaseID} Update a use case · Patch a usecase #
Ask an LLM
“How do I change just the description of a use case?”
“Can I add a label to an existing use case?”
Tell an agent
Set the description of use case {usecaseID} to {description}.
Add label {labels} to use case {usecaseID}.
GET /usecases/{usecaseID}/deployments List a use case's deployments · List all deployments of a usecase #
Ask an LLM
“Which deployments exist for a use case?”
“Can I filter a use case's deployments by status?”
Tell an agent
List deployments of use case {usecaseID}.
Show {limit} deployments of use case {usecaseID} matching {filter}.
POST /usecases/{usecaseID}/deployments Deploy a use case · Deploy a usecase #
Ask an LLM
“How do I deploy a use case to PhariaOS?”
“What config do I need to trigger a use case deployment?”
Tell an agent
Deploy use case {usecaseID} with config {config}.
Trigger a deployment of use case {usecaseID}.
DELETE /usecases/{usecaseID}/deployments Undeploy a use case · Undeploy a usecase #
Ask an LLM
“How do I undeploy a use case?”
“Can I stop a use case deployment without deleting it?”
Tell an agent destructive · confirm first
Undeploy use case {usecaseID}.
Stop the deployment of use case {usecaseID}.
GET /usecases/{usecaseID}/deployments/{deploymentID} Get a use case deployment · Get a usecase deployment by ID #
Ask an LLM
“What are the details of one deployment of a use case?”
“Can I look up a single use case deployment by ID?”
Tell an agent
Get deployment {deploymentID} of use case {usecaseID}.
Show the status of use case {usecaseID} deployment {deploymentID}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aleph-alpha:aleph-alpha-use-cases-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aleph-alpha-use-cases-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: A powerful resource management system that oversees the entire lifecycle of resources, from inception to maintenance, while efficiently integrating them with the appropriate PhariaOS. Additionally, this program takes charge of seamless application deployments, ensuring smooth operations throughout.
  title: PhariaOS Manager Usecases API
  contact:
    name: Aleph Alpha
    url: https://www.aleph-alpha.com
  version: '1.0'
servers:
- url: https://api.pharia.example.com/v1/os
tags:
- description: '**Usecases (Applications)**


    Usecases are full-stack end to end AI applications.'
  name: Use Cases
paths:
  /usecases:
    get:
      tags:
      - Use Cases
      summary: List all usecases
      parameters:
      - description: 'Filter is a JSON string containing filter criteria.


          Example: {"name":"test", "projectId":"project-id", "labels":["assistant","ui"]}


          Labels filtering uses OR logic: returns usecases with ANY of the specified labels'
        name: filter
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          format: int
          default: 10
      - name: page
        in: query
        schema:
          type: integer
          format: int
          default: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.UsecasePaginatedResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      operationId: getUsecases
      x-operation-id-source: derived
    post:
      tags:
      - Use Cases
      summary: Create a new usecase
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.UsecaseOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dtos.CreateUsecaseRequest'
        description: Usecase object that needs to be created
        required: true
      operationId: postUsecases
      x-operation-id-source: derived
  /usecases/{usecaseID}:
    get:
      description: Retrieve a usecase by its ID
      tags:
      - Use Cases
      summary: Get usecase by ID
      parameters:
      - description: Usecase ID
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.UsecaseOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      operationId: getUsecasesByUsecaseID
      x-operation-id-source: derived
    put:
      tags:
      - Use Cases
      summary: Update a usecase
      parameters:
      - description: Usecase ID
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.UsecaseOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dtos.UpdateUsecaseRequest'
        description: Usecase object that needs to be updated
        required: true
      operationId: putUsecasesByUsecaseID
      x-operation-id-source: derived
    delete:
      description: 'Delete a usecase if it is not active or pending (deployment status: undeployed, error)'
      tags:
      - Use Cases
      summary: Delete a usecase
      parameters:
      - description: Usecase ID
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      operationId: deleteUsecasesByUsecaseID
      x-operation-id-source: derived
    patch:
      tags:
      - Use Cases
      summary: Patch a usecase
      parameters:
      - description: Usecase ID
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: No Content
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dtos.PatchUsecaseRequest'
        description: Usecase object that needs to be patched
        required: true
      operationId: patchUsecasesByUsecaseID
      x-operation-id-source: derived
  /usecases/{usecaseID}/deployments:
    get:
      tags:
      - Use Cases
      summary: List all deployments of a usecase
      parameters:
      - description: ID of the usecase
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      - description: 'DeploymentFilter is a struct that contains the filter fields for the deployment

          example: {"status":"deployed"}'
        name: filter
        in: query
        schema:
          type: string
      - name: limit
        in: query
        schema:
          type: integer
          format: int
          default: 10
      - name: page
        in: query
        schema:
          type: integer
          format: int
          default: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.UsecaseDeploymentPaginatedResult'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      operationId: getUsecasesByUsecaseIDDeployments
      x-operation-id-source: derived
    post:
      description: Triggers a usecase deployment
      tags:
      - Use Cases
      summary: Deploy a usecase
      parameters:
      - description: Usecase ID
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.UsecaseDeploymentCreatedOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dtos.DeployUsecaseRequest'
        description: Usecase deployment configuration
        required: true
      operationId: postUsecasesByUsecaseIDDeployments
      x-operation-id-source: derived
    delete:
      description: Triggers a usecase undeployment
      tags:
      - Use Cases
      summary: Undeploy a usecase
      parameters:
      - description: Usecase ID
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail422'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      operationId: deleteUsecasesByUsecaseIDDeployments
      x-operation-id-source: derived
  /usecases/{usecaseID}/deployments/{deploymentID}:
    get:
      tags:
      - Use Cases
      summary: Get a usecase deployment by ID
      parameters:
      - description: Usecase ID
        name: usecaseID
        in: path
        required: true
        schema:
          type: string
      - description: Deployment ID
        name: deploymentID
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.UsecaseDeploymentOutput'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail400'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail401'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail403'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail404'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dtos.ProblemDetail500'
      operationId: getUsecasesByUsecaseIDDeploymentsByDeploymentID
      x-operation-id-source: derived
components:
  schemas:
    dtos.ResourceGpu:
      type: object
      properties:
        name:
          type: string
          example: nvidia.com/gpu
        value:
          type: integer
          example: 1
    dtos.UsecasePaginatedResult:
      type: object
      required:
      - data
      - limit
      - page
      - total
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/dtos.UsecaseOutput'
        limit:
          type: integer
        page:
          type: integer
        total:
          type: integer
    dtos.Availability:
      type: object
      properties:
        startup:
          description: Defines the probe that will be used during container startup.
          allOf:
          - $ref: '#/components/schemas/dtos.Probe'
    dtos.Ingress:
      type: object
      properties:
        enabled:
          type: boolean
          example: true
    dtos.ProblemDetail422:
      type: object
      properties:
        code:
          type: integer
          example: 2000
        detail:
          type: string
          example: Unprocessable Entity
        instance:
          type: string
          example: https://api.example.com/docs/errors/422
        status:
          type: integer
          example: 422
        title:
          type: string
          example: Unprocessable Entity
        type:
          type: string
    dtos.UsecaseDeploymentCreatedOutput:
      type: object
      properties:
        id:
          type: string
    deployment.Status:
      type: string
      enum:
      - undeploying
      - undeployed
      - deploying
      - deployed
      - error
      - superseded
      x-enum-varnames:
      - StatusUndeploying
      - StatusUndeployed
      - StatusDeploying
      - StatusDeployed
      - StatusError
      - StatusSuperseded
    dtos.Resources:
      type: object
      properties:
        limits:
          description: Resource limits imposed on the deployment. Must be greater than or equal to requests.
          allOf:
          - $ref: '#/components/schemas/dtos.ResourceLimit'
        requests:
          description: Resource requests required for the deployment.
          allOf:
          - $ref: '#/components/schemas/dtos.ResourceRequest'
    dtos.Image:
      type: object
      required:
      - registry
      - repository
      - tag
      properties:
        registry:
          type: string
          example: docker.io
        repository:
          type: string
          example: alephalpha/phariaos-usecase
        tag:
          type: string
          example: 0.0.1
    dtos.Autoscaling:
      type: object
      properties:
        enabled:
          description: Enable or disable autoscaling for the deployment. When enabled, uses CPU at 70% by default if no metrics specified.
          type: boolean
          example: true
        maxReplicas:
          description: The maximum number of replicas allowed when autoscaling is enabled.
          type: integer
          default: 5
          example: 5
        metrics:
          description: Scaling metrics. If empty, defaults to CPU at 70%.
          type: array
          items:
            $ref: '#/components/schemas/dtos.Metric'
        minReplicas:
          description: The minimum number of replicas to maintain when autoscaling is enabled.
          type: integer
          default: 1
          example: 1
    dtos.ResourceLimit:
      type: object
      properties:
        cpu:
          description: 'The maximum amount of CPU allowed for the deployment. (Example: "1000m" for 1 CPU)'
          type: string
          example: 1000m
        gpu:
          description: The number of GPUs requested for the deployment. It is only considered for model deployment. Only necessary to be specified in limits, not requests. (See https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/)
          allOf:
          - $ref: '#/components/schemas/dtos.ResourceGpu'
        memory:
          description: 'The maximum amount of memory allowed for the deployment. (Example: "512Mi" for 512 MiB of memory)'
          type: string
          example: 512Mi
    dtos.ReferenceEnvVar:
      type: object
      required:
      - name
      - secret
      properties:
        name:
          type: string
          example: DATABASE_PASSWORD
        secret:
          $ref: '#/components/schemas/dtos.EnvRef'
    dtos.ProblemDetail404:
      type: object
      properties:
        code:
          type: integer
          example: 2
        detail:
          type: string
          example: Not Found
        instance:
          type: string
          example: https://api.example.com/docs/errors/404
        status:
          type: integer
          example: 404
        title:
          type: string
          example: Not Found
        type:
          type: string
    dtos.UsecaseOutput:
      type: object
      required:
      - createdAt
      - deployment
      - description
      - id
      - name
      properties:
        createdAt:
          type: string
        deployment:
          allOf:
          - $ref: '#/components/schemas/dtos.UsecaseDeploymentOutput'
        description:
          type: string
        id:
          type: string
        isPublic:
          type: boolean
        labels:
          type: array
          items:
            type: string
        name:
          type: string
        projectId:
          type: string
    dtos.EnvRef:
      type: object
      required:
      - key
      - name
      properties:
        key:
          type: string
          example: password
        name:
          type: string
          example: usecase-abc123-db-credentials
    dtos.UsecaseDeploymentPaginatedResult:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/dtos.UsecaseDeploymentOutput'
        limit:
          type: integer
        page:
          type: integer
        total:
          type: integer
    dtos.Probe:
      type: object
      required:
      - initialDelay
      properties:
        initialDelay:
          description: 'InitialDelay is the delay before the probe begins checking container health.

            Format: duration string (e.g., "30s", "5m", "1h").'
          type: string
          default: 20s
          example: 30s
    dtos.DeployUsecaseRequest:
      type: object
      required:
      - config
      properties:
        config:
          $ref: '#/components/schemas/dtos.UsecaseConfig'
    dtos.UsecaseConfig:
      type: object
      required:
      - image
      properties:
        autoscaling:
          $ref: '#/components/schemas/dtos.Autoscaling'
        availability:
          $ref: '#/components/schemas/dtos.Availability'
        envVars:
          description: Environment variables that are going to be available in the usecase
          type: object
          additionalProperties:
            type: string
          example:
            key: value
            key2: value2
        image:
          $ref: '#/components/schemas/dtos.Image'
        ingress:
          $ref: '#/components/schemas/dtos.Ingress'
        resources:
          $ref: '#/components/schemas/dtos.Resources'
        secretEnvVars:
          description: Environment variables sourced from Kubernetes secrets
          type: array
          items:
            $ref: '#/components/schemas/dtos.ReferenceEnvVar'
        serviceMonitor:
          $ref: '#/components/schemas/dtos.ServiceMonitor'
    dtos.Metric:
      type: object
      properties:
        targetUtilization:
          description: Target utilization percentage for the metric. The utilization is measured relative to the resource request, not the limit.
          type: integer
          example: 70
        type:
          description: The type of metric to scale on.
          type: string
          enum:
          - cpu
          - memory
          example: cpu
    dtos.CreateUsecaseRequest:
      type: object
      required:
      - description
      - name
      properties:
        description:
          type: string
          example: usecase-description
        isPublic:
          type: boolean
          example: true
        labels:
          type: array
          items:
            type: string
          example:
          - assistant
          - ui
        name:
          type: string
          example: usecase-name
        projectId:
          type: string
          example: project-id
    dtos.ProblemDetail403:
      type: object
      properties:
        code:
          type: integer
          example: 1002
        detail:
          type: string
          example: Forbidden
        instance:
          type: string
          example: https://api.example.com/docs/errors/403
        status:
          type: integer
          example: 403
        title:
          type: string
          example: Forbidden
        type:
          type: string
    dtos.ProblemDetail500:
      type: object
      properties:
        code:
          type: integer
          example: 1
        detail:
          type: string
          example: Internal Server Error
        instance:
          type: string
          example: https://api.example.com/docs/errors/500
        status:
          type: integer
          example: 500
        title:
          type: string
          example: Internal Server Error
        type:
          type: string
    dtos.ProblemDetail401:
      type: object
      properties:
        code:
          type: integer
          example: 1100
        detail:
          type: string
          example: Unauthorized
        instance:
          type: string
          example: https://api.example.com/docs/errors/401
        status:
          type: integer
          example: 401
        title:
          type: string
          example: Unauthorized
        type:
          type: string
    dtos.UsecaseDeploymentOutput:
      type: object
      required:
      - createdAt
      - id
      - message
      - status
      - url
      properties:
        createdAt:
          type: string
        id:
          type: string
        message:
          description: This field is meant to be populated with any errors that might happen during deployment.
          type: string
        status:
          description: Current deployment status
          allOf:
          - $ref: '#/components/schemas/deployment.Status'
        url:
          description: The URL that the usecase can be reached with.
          type: string
    dtos.PatchUsecaseRequest:
      type: object
      properties:
        description:
          type: string
          example: usecase-description
        isPublic:
          type: boolean
          example: true
        labels:
          type: array
          items:
            type: string
          example:
          - assistant
          - ui
        name:
          type: string
          example: usecase-name
        projectId:
          type: string
          example: project-id
    dtos.UpdateUsecaseRequest:
      type: object
      required:
      - description
      - name
      properties:
        description:
          type: string
          example: usecase-description
        isPublic:
          type: boolean
          example: true
        labels:
          type: array
          items:
            type: string
          example:
          - assistant
          - ui
        name:
          type: string
          example: usecase-name
        projectId:
          type: string
          example: project-id
    dtos.ResourceRequest:
      type: object
      properties:
        cpu:
          description: 'The amount of CPU requested for the deployment. (Example: "500m" for 500 milliCPU)'
          type: string
          example: 500m
        memory:
          description: 'The amount of memory requested for the deployment. (Example: "256Mi" for 256 MiB of memory)'
          type: string
          example: 256Mi
    dtos.ProblemDetail400:
      type: object
      properties:
        code:
          type: integer
          example: 3000
        detail:
          type: string
          example: Bad Request
        instance:
          type: string
          example: https://api.example.com/docs/errors/400
        status:
          type: integer
          example: 400
        title:
          type: string
          example: Bad Request
        type:
          type: string
    dtos.ServiceMonitor:
      type: object
      properties:
        enabled:
          type: boolean
          example: true
        path:
          description: 'Path is the path where the metrics are scraped from the usecase.

            If not provided, default is `/metrics`.'
          type: string
          example: /custom-metrics
        scrapingInterval:
          description: 'Interval which metrics should be scraped. It follows Prometheus Duration format.

            See https://prometheus.io/docs/prometheus/latest/querying/basics/#float-literals-and-time-durations for reference.

            If not provided, default is 30s.'
          type: string
          example: 60s
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Authorization
      in: header