> ## Documentation Index
> Fetch the complete documentation index at: https://docs.primeintellect.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Hosted Evaluation Logs Route

> Store the runner's final log. Called by the hosted-eval sandbox itself as it
exits, with the run's own key; a VM sandbox is gone before the exit webhook.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json put /api/v1/hosted-evaluations/{evaluation_id}/logs
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/hosted-evaluations/{evaluation_id}/logs:
    put:
      tags:
        - hosted-evaluations
      summary: Upload Hosted Evaluation Logs Route
      description: >-
        Store the runner's final log. Called by the hosted-eval sandbox itself
        as it

        exits, with the run's own key; a VM sandbox is gone before the exit
        webhook.
      operationId: >-
        upload_hosted_evaluation_logs_route_api_v1_hosted_evaluations__evaluation_id__logs_put
      parameters:
        - name: evaluation_id
          in: path
          required: true
          schema:
            type: string
            title: Evaluation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UploadHostedEvaluationLogsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UploadHostedEvaluationLogsResponse'
        '401':
          description: Authorization failed
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    UploadHostedEvaluationLogsRequest:
      properties:
        logs:
          type: string
          maxLength: 8388608
          title: Logs
      type: object
      required:
        - logs
      title: UploadHostedEvaluationLogsRequest
      description: The runner's final log, sent by the sandbox as it exits.
    UploadHostedEvaluationLogsResponse:
      properties:
        success:
          type: boolean
          title: Success
        evaluation_id:
          type: string
          title: Evaluation Id
      type: object
      required:
        - success
        - evaluation_id
      title: UploadHostedEvaluationLogsResponse
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````