components:
  parameters:
    orderBy:
      description: Sort order for the results. The accepted values and the default
        differ by operation. An unsupported value returns 400.
      in: query
      name: orderBy
      schema:
        type: string
    pageSize:
      description: Number of items to return per page, from 1 to 100. Defaults to
        10. A value outside the range returns 400.
      in: query
      name: pageSize
      schema:
        maximum: 100
        minimum: 1
        type: integer
    pageSizeUnbounded:
      description: Number of items to return per page, from 1 to 2,000. Defaults to
        10. A value outside the range returns 400.
      in: query
      name: pageSize
      schema:
        maximum: 2000
        type: integer
    pageToken:
      description: Token for the next page, copied from `nextPageToken` in the previous
        response. Omit it to get the first page. Send it with the same other query
        parameters as the request that returned it, or the request returns 400.
      in: query
      name: pageToken
      schema:
        type: string
    runCounterQuery:
      description: Run to read, numbered from 0 to match the resource's `runCounter`
        field. Omit it to read the current run. A job that did not take part in that
        run answers with its latest earlier run, or 404 if it has none. A run the
        batch has not reached returns 404, and a negative value returns 400.
      in: query
      name: runCounter
      schema:
        $ref: '#/components/schemas/runCounter'
  responses:
    alreadyExists:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'A resource with the same name or ID already exists, or the resources

        are already linked. The `message` names the conflict.

        '
    badRequest:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The request does not match this specification, or the operation

        rejected one of its values. The `message` says what was rejected.

        '
    conflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The request conflicts with the current state of the resource,
        for

        example a change to something that is still being updated. The

        `message` gives the cause.

        '
    forbidden:
      content:
        application/json:
          example:
            message: 'Missing permission: projects:read'
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The credential lacks the scope this operation requires, the

        application that requested the token is not authorized for this API,

        or the organization''s tier or settings do not allow the request. A

        missing scope gives a `message` starting with

        `Missing permission: <scope>`, and a tier limit sets `code`.

        '
    insufficientQuota:
      content:
        application/json:
          example:
            code: ORG_SUSPENDED
            message: This organization's access is suspended because its credits are
              used up. Upgrade or add credits at app.resim.ai, or contact support@resim.ai.
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The organization''s access is suspended because its credits are
        used

        up, so requests other than `GET` are refused. The `code` is

        `ORG_SUSPENDED`.

        '
    notFound:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The resource does not exist, or it is not in your organization
        or in

        the project named in the path.

        '
    orgSuspended:
      content:
        application/json:
          example:
            code: ORG_SUSPENDED
            message: This organization's access is suspended because its credits are
              used up. Upgrade or add credits at app.resim.ai, or contact support@resim.ai.
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The organization''s access is suspended because its credits are
        used

        up, so requests other than `GET` are refused. The `code` is

        `ORG_SUSPENDED`.

        '
    retryableConflict:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The batch''s previous run is still finishing, so it cannot be
        rerun

        yet. Wait the number of seconds in `Retry-After`, then retry.

        '
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
          example: 30
    tooManyRequests:
      content:
        application/json:
          example:
            code: TIER_CONCURRENCY_LIMIT
            message: This organization is limited to 2 concurrent batch(es). Batch
              "nightly-regression" (6f1c2a4e-3b7d-4c55-9e0a-2d8b1f7c9a31) is already
              running; wait for it to finish or cancel it before starting another.
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The service is at capacity and the response has no body, or the

        organization is already running as many batches as its tier allows

        and the `code` is `TIER_CONCURRENCY_LIMIT`. Retry with exponential

        backoff.

        '
    unauthenticated:
      content:
        application/json:
          example:
            message: Could not find valid authentication token
          schema:
            $ref: '#/components/schemas/errorResponse'
      description: 'The credential is missing, malformed, expired or revoked. Send
        a valid

        API key or OAuth 2 access token as a bearer token.

        '
  schemas:
    addAssetsToBuildInput:
      properties:
        assets:
          items:
            $ref: '#/components/schemas/assetBuildLinkInput'
          minItems: 1
          type: array
      required:
      - assets
      type: object
    addSuitesToExperiencesInput:
      allOf:
      - $ref: '#/components/schemas/selectExperiencesInput'
      - required:
        - testSuiteIDs
      - properties:
          testSuiteIDs:
            items:
              $ref: '#/components/schemas/testSuiteID'
            type: array
        type: object
    addTagsToExperiencesInput:
      allOf:
      - $ref: '#/components/schemas/selectExperiencesInput'
      - required:
        - experienceTagIDs
      - properties:
          experienceTagIDs:
            items:
              $ref: '#/components/schemas/experienceTagID'
            type: array
        type: object
    agent:
      description: A HiL Agent registration, hydrated with derived activity and recent-activity
        fields for the customer-facing list/detail surfaces.
      properties:
        activity:
          $ref: '#/components/schemas/agentActivity'
        agentID:
          type: string
        firstCheckin:
          format: date-time
          type: string
        isOutOfDate:
          description: 'True iff the agent''s reported version is older (semver-canonical,

            prerelease stripped) than latestKnownVersion. False when

            latestKnownVersion is unset (the UI suppresses the indicator

            entirely in that case).

            '
          type: boolean
        lastCheckin:
          format: date-time
          type: string
        orgID:
          $ref: '#/components/schemas/orgID'
        pauseReason:
          description: The free-text reason recorded with the pause, if any. Absent
            when not paused or no reason was given.
          type: string
        pausedAt:
          description: 'When the agent was paused, or absent if it is not paused.
            A paused

            agent stops launching workers and has its in-flight worker

            terminated (the interrupted task is requeued, not cancelled).

            '
          format: date-time
          type: string
        pausedBy:
          description: The actor (email, or client identity for machine tokens) who
            set the current pause. Absent when not paused.
          type: string
        poolLabels:
          $ref: '#/components/schemas/poolLabels'
        recentActivity:
          description: Up to a server-defined cap of most-recent unified batch+job
            activity cards.
          items:
            $ref: '#/components/schemas/agentRecentActivity'
          type: array
        reportedPausedAt:
          description: "When the agent last confirmed it had quiesced \u2014 observed\
            \ the pause\nand its in-flight worker exited. Absent if it has not acknowledged\n\
            the current pause (an older agent binary never will; use `version`\nto\
            \ disambiguate \"old binary\" from \"still draining\"). Raw timestamp\n\
            rather than a derived boolean by design.\n"
          format: date-time
          type: string
        version:
          type: string
      required:
      - agentID
      - orgID
      - poolLabels
      - firstCheckin
      - lastCheckin
      - version
      - isOutOfDate
      - activity
      - recentActivity
      type: object
    agentActivity:
      description: 'Whether the agent is actively running a job. ACTIVE means the
        agent

        has at least one job in conflatedStatus=RUNNING joined via

        jobs_status_history.agent_id, AND its last_checkin is within the

        active-window threshold (default 5 minutes). INACTIVE otherwise.

        '
      enum:
      - ACTIVE
      - INACTIVE
      type: string
    agentRecentActivity:
      description: 'One card in an agent''s recent-activity feed, combining the batch

        with the specific test/job that ran. The UI renders a single

        unified card per activity item rather than separate batch and

        test columns.

        '
      properties:
        batchConflatedStatus:
          $ref: '#/components/schemas/conflatedBatchStatus'
        batchID:
          format: uuid
          type: string
        batchName:
          type: string
        branchName:
          description: "Optional \u2014 null when the batch's build is not associated\
            \ with a branch."
          type: string
        buildID:
          description: "ID of the build the batch ran, for linking to the build page.\
            \ Optional \u2014 null when no build can be resolved."
          format: uuid
          type: string
        buildVersion:
          description: "The build version associated with the batch. Optional \u2014\
            \ null when no build can be resolved."
          type: string
        errorSummary:
          description: "Latest error_text recorded against the job. Optional \u2014\
            \ null when the job has no errors."
          type: string
        executionErrors:
          description: 'Structured errors recorded against the job on its current
            run, keyed

            by error code so the UI can resolve brief/full copy (mirrors the Job

            shape). Scoped to the current run_counter, so a stale error from a

            prior attempt is not surfaced after a passing rerun.

            '
          items:
            $ref: '#/components/schemas/executionError'
          type: array
        jobConflatedStatus:
          $ref: '#/components/schemas/conflatedJobStatus'
        jobID:
          format: uuid
          type: string
        jobName:
          description: Surfaced as "test name" in the agent-status UI; sourced from
            the experience name on the job.
          type: string
        projectID:
          format: uuid
          type: string
        projectName:
          description: "Name of the project the batch belongs to. Always present \u2014\
            \ every batch has a project."
          type: string
        systemID:
          description: "ID of the system the batch's build belongs to, for linking\
            \ to the system page. Optional \u2014 null when no build/system can be\
            \ resolved."
          format: uuid
          type: string
        systemName:
          description: "Name of the system the batch's build belongs to. Optional\
            \ \u2014 null when no build/system can be resolved."
          type: string
        testSuiteID:
          description: "ID of the test suite the batch belongs to, for linking to\
            \ the test-suite page. Optional \u2014 null when the batch is adhoc."
          format: uuid
          type: string
        testSuiteName:
          description: "Name of the test suite the batch belongs to. Optional \u2014\
            \ null when the batch is adhoc or the test_suites row cannot be resolved."
          type: string
        testSuiteRevision:
          description: "Revision of the test suite the batch ran. Optional \u2014\
            \ present only alongside testSuiteID, since the test-suite page is revision-specific."
          format: int32
          type: integer
        timestamp:
          format: date-time
          type: string
        workerID:
          description: "Identifier of the worker that ran the job, sourced from jobs_status_history.\
            \ Optional \u2014 older rows may not have a worker recorded."
          type: string
      required:
      - batchID
      - batchName
      - batchConflatedStatus
      - jobID
      - jobName
      - jobConflatedStatus
      - projectName
      - timestamp
      type: object
    agentUtilizationBucket:
      description: "One time bucket of agent utilization. utilization is the union\
        \ of\nthe agent's EXPERIENCE_RUNNING intervals clipped to the bucket,\ndivided\
        \ by the bucket's wall-clock duration \u2014 a fraction in\n[0.0, 1.0]. An\
        \ agent runs one experience at a time, so there is no\nconcurrency dimension.\n\
        \noffline is the fraction of bucket wall-clock during which the\nagent's heartbeat\
        \ had been silent for over five minutes (0 before\noffline recording was deployed).\
        \ Online-but-idle time is derived,\nnot reported: 1 \u2212 utilization \u2212\
        \ offline, clamped at 0 \u2014 a stuck\nrun overlapping recorded offline time\
        \ can push utilization +\noffline past 1.0 transiently. testsRun counts job\
        \ runs that\nstarted in the bucket; each run counts exactly once across the\n\
        series, so bucket sums match the window's totalTestsRun.\n"
      properties:
        bucketEnd:
          format: date-time
          type: string
        bucketStart:
          format: date-time
          type: string
        offline:
          format: double
          type: number
        testsRun:
          type: integer
        utilization:
          format: double
          type: number
      required:
      - bucketStart
      - bucketEnd
      - utilization
      - offline
      - testsRun
      type: object
    agentUtilizationOutput:
      description: "Dense, time-ordered utilization series for one HiL Agent. Every\n\
        bucket in [windowStart, windowEnd) is present \u2014 buckets with no\nrunning\
        \ experiences carry explicit zeros, so the series charts\ndirectly without\
        \ gap-filling. windowStart/windowEnd echo the\nresolved window (after server-side\
        \ defaulting), since clipped edge\nbuckets do not recover it. totalTestsRun\
        \ counts job runs started\nin the window (the per-bucket testsRun figures\
        \ sum to it; a run\nthat began before the window is not counted). topExperiences\n\
        ranks the agent's experiences by total running seconds in the\nwindow. avgQueueSeconds/medianQueueSeconds\
        \ aggregate the queue\nwait (submission to execution start) of runs started\
        \ in the\nwindow; both are omitted when no started run has a measurable\n\
        wait. Queue waits are long-tailed, so the median resists the\nstuck-batch\
        \ outliers that drag the average.\n"
      properties:
        agentID:
          type: string
        avgQueueSeconds:
          format: double
          type: number
        buckets:
          items:
            $ref: '#/components/schemas/agentUtilizationBucket'
          type: array
        interval:
          enum:
          - hour
          - day
          type: string
        medianQueueSeconds:
          format: double
          type: number
        topExperiences:
          items:
            $ref: '#/components/schemas/agentUtilizationTopExperience'
          type: array
        totalTestsRun:
          type: integer
        windowEnd:
          format: date-time
          type: string
        windowStart:
          format: date-time
          type: string
      required:
      - agentID
      - interval
      - windowStart
      - windowEnd
      - totalTestsRun
      - buckets
      - topExperiences
      type: object
    agentUtilizationSeries:
      description: 'One agent''s dense bucket series within a listAgentUtilization

        response. The window and interval are shared across all series and

        live on the enclosing output, not repeated per agent.

        '
      properties:
        agentID:
          type: string
        buckets:
          items:
            $ref: '#/components/schemas/agentUtilizationBucket'
          type: array
        poolLabels:
          description: 'The agent''s pool labels at query time, so a consumer can
            group the

            per-agent series by pool client-side. Empty when the agent carries

            no labels.

            '
          items:
            $ref: '#/components/schemas/poolLabel'
          type: array
      required:
      - agentID
      - poolLabels
      - buckets
      type: object
    agentUtilizationTopExperience:
      description: "One experience's share of running time within a utilization\n\
        window. runCount is the number of distinct job runs of this\nexperience in\
        \ the window; totalRunSeconds sums their clipped\nrunning durations (concurrent\
        \ runs accumulate independently);\nshare is totalRunSeconds over all experiences'\
        \ running seconds in\nthe window \u2014 a fraction in [0.0, 1.0] of busy time,\
        \ not of\nwall-clock.\n"
      properties:
        experienceID:
          format: uuid
          type: string
        experienceName:
          type: string
        runCount:
          type: integer
        share:
          format: double
          type: number
        totalRunSeconds:
          format: double
          type: number
      required:
      - experienceID
      - experienceName
      - runCount
      - totalRunSeconds
      - share
      type: object
    architecture:
      enum:
      - AMD64
      - ARM64
      type: string
    archiveAgentOutput:
      description: "Response shape for archiveAgent. archivedAt is the original\n\
        archive timestamp \u2014 re-archiving an already-archived agent\npreserves\
        \ the first value rather than refreshing it.\n"
      properties:
        agentID:
          type: string
        archivedAt:
          format: date-time
          type: string
      required:
      - agentID
      - archivedAt
      type: object
    archived:
      type: boolean
    asset:
      properties:
        archived:
          type: boolean
        assetID:
          $ref: '#/components/schemas/assetID'
        assetRevision:
          $ref: '#/components/schemas/assetRevision'
        cacheExempt:
          deprecated: true
          description: Deprecated; use cacheMethod. True when cacheMethod is NONE.
          type: boolean
        cacheMethod:
          $ref: '#/components/schemas/cacheMethod'
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          type: string
        itemCount:
          description: Number of objects in the asset revision's source data, populated
            once the data has been probed.
          nullable: true
          type: integer
        lastCachedTimestamp:
          description: When the asset revision's cache tier was last populated. Null
            if never cached (always null for cacheMethod NONE).
          format: date-time
          nullable: true
          type: string
        locations:
          items:
            type: string
          type: array
        mountFolder:
          type: string
        name:
          type: string
        numBuilds:
          description: Number of builds this asset revision is linked to.
          type: integer
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        sizeBytes:
          description: Total size of the asset revision's source data in bytes, populated
            once the data has been probed.
          format: int64
          nullable: true
          type: integer
        updateTimestamp:
          $ref: '#/components/schemas/timestamp'
        updateUserID:
          $ref: '#/components/schemas/userID'
        userID:
          $ref: '#/components/schemas/userID'
        version:
          type: string
      required:
      - assetID
      - assetRevision
      - name
      - description
      - mountFolder
      - locations
      - version
      - projectID
      - userID
      - orgID
      - creationTimestamp
      - updateTimestamp
      - updateUserID
      - archived
      - cacheMethod
      - cacheExempt
      - numBuilds
      type: object
    assetBuildLinkInput:
      properties:
        assetID:
          $ref: '#/components/schemas/assetID'
        assetRevision:
          $ref: '#/components/schemas/assetRevision'
      required:
      - assetID
      - assetRevision
      type: object
    assetBuildReference:
      properties:
        assetRevision:
          $ref: '#/components/schemas/assetRevision'
        buildID:
          $ref: '#/components/schemas/buildID'
      type: object
    assetID:
      format: uuid
      type: string
    assetRevision:
      format: int64
      type: integer
    associatedAccount:
      type: string
    batch:
      properties:
        adhocTestSuite:
          type: boolean
        allowable_failure_percent:
          type: integer
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        associatedSweepID:
          $ref: '#/components/schemas/parameterSweepID'
        batchID:
          $ref: '#/components/schemas/batchID'
        batchMetricsStatus:
          $ref: '#/components/schemas/metricStatus'
        batchType:
          $ref: '#/components/schemas/batchType'
        blueprintName:
          description: Name of the blueprint this batch ran. Null for batches recorded
            before blueprints existed; system blueprints read "resim:default.0".
          nullable: true
          type: string
        blueprintVersion:
          description: Revision of the blueprint this batch ran. Only set for custom
            blueprints; system blueprints carry their version in the name.
          nullable: true
          type: integer
        branchID:
          $ref: '#/components/schemas/branchID'
        buildID:
          $ref: '#/components/schemas/buildID'
        conflatedStatus:
          $ref: '#/components/schemas/conflatedBatchStatus'
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          type: string
        executionError:
          $ref: '#/components/schemas/executionError'
        executionErrors:
          items:
            $ref: '#/components/schemas/executionError'
          type: array
        features:
          $ref: '#/components/schemas/batchFeatures'
        friendlyName:
          $ref: '#/components/schemas/friendlyName'
        jobMetricsStatusCounts:
          $ref: '#/components/schemas/jobMetricsStatusCounts'
        jobStatusCounts:
          $ref: '#/components/schemas/batchJobStatusCounts'
        jobsMetricsStatus:
          $ref: '#/components/schemas/metricStatus'
        labelledBuilds:
          $ref: '#/components/schemas/labelledBuilds'
        lastRunTimestamp:
          $ref: '#/components/schemas/timestamp'
        lastUpdatedTimestamp:
          $ref: '#/components/schemas/timestamp'
        metricsBuildID:
          $ref: '#/components/schemas/metricsBuildID'
        metricsSetName:
          $ref: '#/components/schemas/metricsSetName'
        orgID:
          $ref: '#/components/schemas/orgID'
        overallMetricsStatus:
          $ref: '#/components/schemas/metricStatus'
        parameters:
          $ref: '#/components/schemas/batchParameters'
        poolLabels:
          $ref: '#/components/schemas/poolLabels'
        priority:
          type: integer
        projectID:
          $ref: '#/components/schemas/projectID'
        runCounter:
          $ref: '#/components/schemas/runCounter'
        runnerType:
          $ref: '#/components/schemas/runnerType'
        status:
          $ref: '#/components/schemas/batchStatus'
        statusHistory:
          $ref: '#/components/schemas/batchStatusHistory'
        systemID:
          $ref: '#/components/schemas/systemID'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
        testSuiteRevision:
          $ref: '#/components/schemas/testSuiteRevision'
        totalJobs:
          $ref: '#/components/schemas/batchTotalJobs'
        userID:
          $ref: '#/components/schemas/userID'
      required:
      - associatedAccount
      - runnerType
      type: object
    batchFeature:
      type: string
    batchFeatures:
      items:
        $ref: '#/components/schemas/batchFeature'
      type: array
    batchID:
      format: uuid
      type: string
    batchInput:
      properties:
        allowableFailurePercent:
          nullable: true
          type: integer
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        batchName:
          $ref: '#/components/schemas/name'
        blueprintName:
          nullable: true
          type: string
        blueprintVersion:
          nullable: true
          type: integer
        buildID:
          $ref: '#/components/schemas/buildID'
        excludedExperienceIDs:
          items:
            $ref: '#/components/schemas/excludedExperienceID'
          nullable: true
          type: array
        experienceIDs:
          items:
            $ref: '#/components/schemas/experienceID'
          nullable: true
          type: array
        experienceNames:
          items:
            $ref: '#/components/schemas/experienceName'
          nullable: true
          type: array
        experienceTagIDs:
          items:
            $ref: '#/components/schemas/experienceTagID'
          nullable: true
          type: array
        experienceTagNames:
          items:
            $ref: '#/components/schemas/experienceTagName'
          nullable: true
          type: array
        features:
          $ref: '#/components/schemas/batchFeatures'
        filters:
          $ref: '#/components/schemas/experienceFilterInput'
        labelledBuilds:
          $ref: '#/components/schemas/labelledBuilds'
        metricsBuildID:
          $ref: '#/components/schemas/metricsBuildID'
        metricsSetName:
          $ref: '#/components/schemas/metricsSetName'
        parameters:
          $ref: '#/components/schemas/batchParameters'
        poolLabels:
          $ref: '#/components/schemas/poolLabels'
        priority:
          maximum: 32767
          minimum: 0
          nullable: true
          type: integer
        triggeredVia:
          $ref: '#/components/schemas/triggeredVia'
      type: object
    batchJobStatusCounts:
      properties:
        cancelled:
          type: integer
        error:
          type: integer
        metricsQueued:
          type: integer
        metricsRunning:
          type: integer
        running:
          type: integer
        submitted:
          type: integer
        succeeded:
          type: integer
      required:
      - submitted
      - running
      - succeeded
      - error
      - cancelled
      - metricsQueued
      - metricsRunning
      type: object
    batchLog:
      allOf:
      - $ref: '#/components/schemas/log'
      - properties:
          batchID:
            $ref: '#/components/schemas/batchID'
        type: object
    batchParameters:
      additionalProperties:
        type: string
      type: object
    batchStatus:
      enum:
      - SUBMITTED
      - EXPERIENCES_RUNNING
      - BATCH_METRICS_QUEUED
      - BATCH_METRICS_RUNNING
      - ERROR
      - SUCCEEDED
      - CANCELLED
      type: string
    batchStatusHistory:
      items:
        $ref: '#/components/schemas/batchStatusHistoryType'
      type: array
    batchStatusHistoryType:
      properties:
        status:
          $ref: '#/components/schemas/batchStatus'
        updatedAt:
          $ref: '#/components/schemas/timestamp'
      type: object
    batchSuggestionsOutput:
      properties:
        lastPassingOnBranch:
          allOf:
          - $ref: '#/components/schemas/batch'
          nullable: true
        lastPassingOnMain:
          allOf:
          - $ref: '#/components/schemas/batch'
          nullable: true
        latestOnBranch:
          allOf:
          - $ref: '#/components/schemas/batch'
          nullable: true
        latestOnMain:
          allOf:
          - $ref: '#/components/schemas/batch'
          nullable: true
      required:
      - lastPassingOnMain
      - latestOnMain
      - lastPassingOnBranch
      - latestOnBranch
      type: object
    batchTotalJobs:
      type: integer
    batchType:
      enum:
      - NORMAL
      - DEBUG_EXPERIENCE
      - LIGHT
      type: string
    branch:
      properties:
        branchID:
          $ref: '#/components/schemas/branchID'
        branchType:
          $ref: '#/components/schemas/branchType'
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        name:
          type: string
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        userID:
          $ref: '#/components/schemas/userID'
      required:
      - branchID
      - name
      - projectID
      - branchType
      - creationTimestamp
      - userID
      - orgID
      type: object
    branchID:
      format: uuid
      type: string
    branchType:
      enum:
      - CHANGE_REQUEST
      - MAIN
      - RELEASE
      type: string
    build:
      properties:
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        branchID:
          $ref: '#/components/schemas/branchID'
        buildID:
          $ref: '#/components/schemas/buildID'
        buildSpecification:
          $ref: '#/components/schemas/buildSpecificationOutput'
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          $ref: '#/components/schemas/buildDescription'
        imageUri:
          $ref: '#/components/schemas/buildImageUri'
        name:
          $ref: '#/components/schemas/buildName'
        numAssets:
          description: Number of assets linked to this build.
          type: integer
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        systemID:
          $ref: '#/components/schemas/systemID'
        updateTimestamp:
          $ref: '#/components/schemas/timestamp'
        updateUserID:
          $ref: '#/components/schemas/userID'
        userID:
          $ref: '#/components/schemas/userID'
        version:
          $ref: '#/components/schemas/buildVersion'
      required:
      - associatedAccount
      - buildID
      - branchID
      - projectID
      - systemID
      - name
      - description
      - version
      - imageUri
      - buildSpecification
      - creationTimestamp
      - updateTimestamp
      - updateUserID
      - userID
      - orgID
      type: object
    buildAssetLink:
      properties:
        asset:
          $ref: '#/components/schemas/asset'
        buildID:
          $ref: '#/components/schemas/buildID'
        linkCreationTimestamp:
          $ref: '#/components/schemas/timestamp'
      required:
      - asset
      - buildID
      - linkCreationTimestamp
      type: object
    buildDescription:
      deprecated: true
      description: The description of the build. May be a SHA or commit message.
      type: string
    buildID:
      format: uuid
      type: string
    buildImageUri:
      type: string
    buildName:
      description: The name of the build.
      type: string
    buildSpecificationInput:
      format: byte
      type: string
    buildSpecificationOutput:
      description: Build spec in YAML format.
      type: string
    buildVersion:
      minLength: 1
      type: string
    bulkArchiveExperiencesInput:
      allOf:
      - $ref: '#/components/schemas/selectExperiencesInput'
      - required:
        - experienceIDs
      - properties:
          experienceIDs:
            items:
              $ref: '#/components/schemas/experienceID'
            type: array
        type: object
    cacheMethod:
      description: Which caching tier serves this data to jobs. NONE disables caching
        entirely. S3_MOUNTPOINT is reserved and not yet accepted.
      enum:
      - NONE
      - EBS
      - EFS
      - S3_MOUNTPOINT
      type: string
    checksum:
      type: string
    closeJobInput:
      properties:
        errorMessage:
          description: Optional user-provided error message for the job. Only used
            when status is ERROR.
          type: string
        status:
          $ref: '#/components/schemas/lightJobStatus'
      required:
      - status
      type: object
    compareBatchTest:
      properties:
        experienceID:
          $ref: '#/components/schemas/experienceID'
        experienceName:
          $ref: '#/components/schemas/experienceName'
        fromTest:
          $ref: '#/components/schemas/compareBatchTestDetails'
        toTest:
          $ref: '#/components/schemas/compareBatchTestDetails'
      required:
      - experienceID
      - experienceName
      - fromTest
      - toTest
      type: object
    compareBatchTestDetails:
      nullable: true
      properties:
        jobID:
          $ref: '#/components/schemas/jobID'
        numMetrics:
          description: The number of failblock/failwarn/passing metrics (based on
            job's status). Otherwise this will be null
          nullable: true
          type: integer
        status:
          $ref: '#/components/schemas/conflatedJobStatus'
      required:
      - jobID
      - status
      - numMetrics
      type: object
    compareBatchesOutput:
      properties:
        nextPageToken:
          type: string
        tests:
          items:
            $ref: '#/components/schemas/compareBatchTest'
          type: array
        total:
          type: integer
      required:
      - total
      - nextPageToken
      - tests
      type: object
    compareBatchesStatusFilter:
      enum:
      - BOTH_PASSING
      - BOTH_FAILING
      - ONE_FAILING
      type: string
    conflatedBatchStatus:
      enum:
      - SUBMITTED
      - RUNNING
      - CANCELLED
      - ERROR
      - COMPLETE
      - BLOCKER
      - WARNING
      type: string
    conflatedJobStatus:
      enum:
      - QUEUED
      - RUNNING
      - ERROR
      - CANCELLED
      - BLOCKER
      - WARNING
      - PASSED
      type: string
    containerName:
      type: string
    createAssetInput:
      properties:
        cacheExempt:
          deprecated: true
          description: Deprecated; use cacheMethod. true is the same as cacheMethod
            NONE.
          type: boolean
        cacheMethod:
          $ref: '#/components/schemas/cacheMethod'
        description:
          type: string
        locations:
          items:
            type: string
          type: array
        mountFolder:
          type: string
        name:
          type: string
        version:
          type: string
      required:
      - name
      - description
      - mountFolder
      - locations
      - version
      type: object
    createBranchInput:
      properties:
        branchType:
          $ref: '#/components/schemas/branchType'
        name:
          minLength: 1
          type: string
      required:
      - name
      - branchType
      type: object
    createBuildForBranchInput:
      oneOf:
      - required:
        - imageUri
      - required:
        - buildSpecification
      - required:
        - noBuildDefinition
      properties:
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        buildSpecification:
          $ref: '#/components/schemas/buildSpecificationInput'
        description:
          $ref: '#/components/schemas/buildDescription'
        imageUri:
          $ref: '#/components/schemas/buildImageUri'
        name:
          $ref: '#/components/schemas/buildName'
        noBuildDefinition:
          type: boolean
        systemID:
          $ref: '#/components/schemas/systemID'
        version:
          $ref: '#/components/schemas/buildVersion'
      required:
      - systemID
      - version
      type: object
    createBuildForSystemInput:
      oneOf:
      - required:
        - imageUri
      - required:
        - buildSpecification
      - required:
        - noBuildDefinition
      properties:
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        branchID:
          $ref: '#/components/schemas/branchID'
        buildSpecification:
          $ref: '#/components/schemas/buildSpecificationInput'
        description:
          $ref: '#/components/schemas/buildDescription'
        imageUri:
          $ref: '#/components/schemas/buildImageUri'
        name:
          $ref: '#/components/schemas/buildName'
        noBuildDefinition:
          type: boolean
        triggeredVia:
          $ref: '#/components/schemas/triggeredVia'
        version:
          $ref: '#/components/schemas/buildVersion'
      required:
      - branchID
      - version
      type: object
    createExperienceInput:
      properties:
        cacheExempt:
          deprecated: true
          description: Deprecated; use cacheMethod. true is the same as cacheMethod
            NONE.
          type: boolean
        cacheMethod:
          $ref: '#/components/schemas/cacheMethod'
        containerTimeoutSeconds:
          format: int32
          type: integer
        customFields:
          description: Custom field key/value pairs to associate with the experience.
            Field names are case-insensitive. Each field can have multiple values.
          items:
            $ref: '#/components/schemas/customFieldDefinition'
          type: array
        description:
          type: string
        environmentVariables:
          items:
            $ref: '#/components/schemas/environmentVariable'
          type: array
        experienceTagIDs:
          items:
            $ref: '#/components/schemas/experienceTagID'
          type: array
        location:
          deprecated: true
          description: '[DEPRECATED] This field was previously used to define an experience''s
            location. Experiences can now be defined with multiple locations, using
            the locations field. This field will be removed in a later release.'
          minLength: 1
          type: string
        locations:
          items:
            minLength: 1
            type: string
          type: array
        name:
          $ref: '#/components/schemas/experienceName'
        profile:
          $ref: '#/components/schemas/profile'
        systemIDs:
          items:
            $ref: '#/components/schemas/systemID'
          type: array
      required:
      - name
      - description
      type: object
    createExperienceTagInput:
      properties:
        description:
          type: string
        name:
          $ref: '#/components/schemas/experienceTagName'
      required:
      - name
      - description
      type: object
    createJobForBatchInput:
      properties:
        description:
          description: Optional description for the job and experience.
          type: string
        experienceID:
          $ref: '#/components/schemas/experienceID'
        name:
          description: Name for the experience. Either name or experienceID must be
            provided, but not both.
          type: string
      type: object
    createJobLogInput:
      properties:
        checksum:
          $ref: '#/components/schemas/checksum'
        fileName:
          $ref: '#/components/schemas/fileName'
        fileSize:
          $ref: '#/components/schemas/fileSize'
        logType:
          $ref: '#/components/schemas/logType'
      required:
      - fileName
      - fileSize
      - checksum
      type: object
    createJobLogOutput:
      properties:
        logID:
          $ref: '#/components/schemas/logID'
        requiredHeaders:
          $ref: '#/components/schemas/requiredHeaders'
        uploadURL:
          description: Presigned S3 URL for uploading the log file via HTTP PUT.
          format: uri
          type: string
      required:
      - logID
      - uploadURL
      type: object
    createMetricsBuildInput:
      properties:
        imageUri:
          $ref: '#/components/schemas/metricsBuildImageUri'
        name:
          $ref: '#/components/schemas/metricsBuildName'
        version:
          $ref: '#/components/schemas/metricsBuildVersion'
      required:
      - name
      - version
      - imageUri
      type: object
    createProjectInput:
      properties:
        agentMarkdown:
          maxLength: 65536
          type: string
        description:
          type: string
        name:
          minLength: 1
          type: string
      required:
      - name
      - description
      type: object
    createSystemInput:
      properties:
        architecture:
          $ref: '#/components/schemas/architecture'
        build_gpus:
          type: integer
        build_memory_mib:
          type: integer
        build_shared_memory_mb:
          type: integer
        build_vcpus:
          type: integer
        description:
          type: string
        gpu_type:
          description: The GPU model the build and metrics build need when they request
            GPUs, as the lowercase name AWS uses (for example `t4`, `a10g`, `l4`,
            `l40s`). Omit to accept any GPU the organization may use.
          type: string
        instance_families:
          description: EC2 instance families (for example `c7i`, `m7i`) the build
            and metrics build may run on. Omit or leave empty to accept any family
            the organization may use.
          items:
            type: string
          type: array
        metrics_build_gpus:
          nullable: true
          type: integer
        metrics_build_memory_mib:
          nullable: true
          type: integer
        metrics_build_shared_memory_mb:
          nullable: true
          type: integer
        metrics_build_vcpus:
          nullable: true
          type: integer
        name:
          minLength: 1
          type: string
      required:
      - name
      - description
      - build_vcpus
      - build_memory_mib
      - build_gpus
      - build_shared_memory_mb
      type: object
    createTestSuiteInput:
      properties:
        allExperiences:
          type: boolean
        description:
          $ref: '#/components/schemas/testSuiteDescription'
        excludedExperienceIDs:
          items:
            $ref: '#/components/schemas/excludedExperienceID'
          type: array
        experiences:
          items:
            $ref: '#/components/schemas/experienceID'
          type: array
        filters:
          $ref: '#/components/schemas/experienceFilterInput'
        metricsBuildID:
          $ref: '#/components/schemas/metricsBuildID'
        metricsSetName:
          $ref: '#/components/schemas/metricsSetName'
        name:
          $ref: '#/components/schemas/testSuiteName'
        showOnSummary:
          type: boolean
        summaryReferenceDate:
          $ref: '#/components/schemas/timestamp'
        systemID:
          $ref: '#/components/schemas/systemID'
      required:
      - name
      - description
      - systemID
      - experiences
      type: object
    createWorkflowInput:
      properties:
        ciWorkflowLink:
          type: string
        description:
          type: string
        name:
          type: string
        workflowSuites:
          items:
            $ref: '#/components/schemas/workflowSuiteInput'
          type: array
      required:
      - name
      - description
      - workflowSuites
      type: object
    createWorkflowRunInput:
      description: "Input to create a workflow run. A run is configured via exactly\
        \ one of\ntwo mutually-exclusive mechanisms:\n\n1. **Multi-system (preferred)**:\
        \ set `builds` with one entry per\n   system covered by the workflow's enabled\
        \ suites. Each entry pins a\n   build by `buildID`; the system is derived\
        \ server-side from\n   `builds.system_id`. Optional per-entry `poolLabels`,\
        \ `parameters`,\n   `allowableFailurePercent` and `features` apply only to\
        \ the batches\n   run on that entry's system.\n2. **Legacy single-system (deprecated)**:\
        \ set the top-level `buildID`.\n   The run-level `poolLabels`, `parameters`,\
        \ and\n   `allowableFailurePercent` (if any) apply to every enabled suite\
        \ in\n   the workflow. New integrations should use `builds` even when the\n\
        \   workflow only covers one system.\n\nMixing the two mechanisms is rejected\
        \ with HTTP 400. Specifically:\n  - `buildID` and `builds` cannot both be\
        \ set.\n  - When `builds` is set, the run-level `poolLabels`, `parameters`,\n\
        \    and `allowableFailurePercent` must be omitted; supply those\n    values\
        \ per-entry on the `builds` items instead.\n\nWithin `builds`, two entries\
        \ resolving to the same system are\nrejected, and a build whose system is\
        \ not covered by any enabled\nsuite is rejected. A workflow with an enabled\
        \ suite whose system has\nno matching entry in `builds` is also rejected (HTTP\
        \ 422).\n\n`associatedAccount` and `triggeredVia` are run-level metadata that\n\
        apply to every batch produced by the run and are valid in both\nmechanisms.\n\
        \n`features` is valid in both mechanisms and applies to every batch\nproduced\
        \ by the run. With `builds`, each entry's `features` are\napplied on top:\
        \ `name` or `+name` adds a feature, and `-name` removes\none set at run level.\n"
      properties:
        allowableFailurePercent:
          deprecated: true
          description: '**Deprecated**: run-level allowable failure percent for the
            legacy

            `buildID` mechanism; applied to every enabled suite. Must be

            omitted when using `builds`. With `builds`, set

            `allowableFailurePercent` per-entry on the builds items instead.

            '
          nullable: true
          type: integer
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        buildID:
          allOf:
          - $ref: '#/components/schemas/buildID'
          deprecated: true
          description: '**Deprecated**: legacy single-system mechanism. Identifies
            the

            build for the one system covered by the workflow. Mutually

            exclusive with `builds`. New integrations should use `builds`

            instead, even for single-system workflows.

            '
          nullable: true
        builds:
          description: 'Multi-system mechanism (preferred). One entry per system covered

            by the workflow''s enabled suites; the system for each entry is

            derived from the entry''s `buildID`. Mutually exclusive with the

            run-level `buildID`, `poolLabels`, `parameters`, and

            `allowableFailurePercent`.

            '
          items:
            $ref: '#/components/schemas/workflowRunBuildInput'
          nullable: true
          type: array
        features:
          description: 'Features enabled on every batch produced by the run. Entries
            in

            `builds` may add to or remove from these with their own

            `features`.

            '
          items:
            $ref: '#/components/schemas/batchFeature'
          type: array
        parameters:
          allOf:
          - $ref: '#/components/schemas/batchParameters'
          deprecated: true
          description: '**Deprecated**: run-level parameters for the legacy `buildID`

            mechanism; applied to every enabled suite. Must be omitted when

            using `builds`. With `builds`, set `parameters` per-entry on the

            builds items instead.

            '
          nullable: true
        poolLabels:
          allOf:
          - $ref: '#/components/schemas/poolLabels'
          deprecated: true
          description: '**Deprecated**: run-level pool labels for the legacy `buildID`

            mechanism; applied to every enabled suite. Must be omitted when

            using `builds`. With `builds`, set `poolLabels` per-entry on the

            builds items instead.

            '
          nullable: true
        triggeredVia:
          $ref: '#/components/schemas/triggeredVia'
      type: object
    createWorkflowSuiteInput:
      properties:
        enabled:
          $ref: '#/components/schemas/enabled'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
      required:
      - testSuiteID
      - enabled
      type: object
    createWorkflowSuiteOutput:
      properties:
        enabled:
          $ref: '#/components/schemas/enabled'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
        workflowID:
          $ref: '#/components/schemas/workflowID'
      required:
      - workflowID
      - testSuiteID
      - enabled
      type: object
    createWorkflowSuitesInput:
      properties:
        workflowSuites:
          items:
            $ref: '#/components/schemas/createWorkflowSuiteInput'
          type: array
      required:
      - workflowSuites
      type: object
    createWorkflowSuitesOutput:
      properties:
        workflowSuites:
          items:
            $ref: '#/components/schemas/createWorkflowSuiteOutput'
          type: array
      required:
      - workflowSuites
      type: object
    customFieldDefinition:
      properties:
        name:
          type: string
        type:
          $ref: '#/components/schemas/customFieldValueType'
        values:
          description: Array of field values. For 'text' type, use plain strings.
            For 'number' type, use string representations of numbers (e.g., "32").
            For 'timestamp' type, use ISO 8601 format strings. For 'json' type, use
            JSON string representations of objects or arrays.
          items:
            type: string
          type: array
      required:
      - name
      - values
      - type
      type: object
    customFieldValueType:
      enum:
      - text
      - number
      - timestamp
      - json
      type: string
    debugExperienceInput:
      properties:
        batchID:
          $ref: '#/components/schemas/batchID'
        buildID:
          $ref: '#/components/schemas/buildID'
        containers:
          items:
            $ref: '#/components/schemas/containerName'
          type: array
        features:
          $ref: '#/components/schemas/batchFeatures'
        poolLabels:
          $ref: '#/components/schemas/poolLabels'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
      type: object
    debugExperienceOutput:
      properties:
        batchID:
          $ref: '#/components/schemas/batchID'
        clusterCAData:
          type: string
        clusterEndpoint:
          type: string
        clusterToken:
          type: string
        namespace:
          type: string
      type: object
    deleteWorkflowSuitesInput:
      properties:
        testSuiteIDs:
          items:
            $ref: '#/components/schemas/testSuiteID'
          type: array
      required:
      - testSuiteIDs
      type: object
    enabled:
      type: boolean
    entityRun:
      description: "One run an entity actually reached. metricsStatus is absent when\
        \ the run\nfinished before per-run results were recorded \u2014 an unknown\
        \ result, not a\npassing one.\n"
      properties:
        batchStatus:
          $ref: '#/components/schemas/batchStatus'
        jobStatus:
          $ref: '#/components/schemas/jobStatus'
        lastUpdatedTimestamp:
          $ref: '#/components/schemas/timestamp'
        metricsStatus:
          $ref: '#/components/schemas/metricStatus'
        runCounter:
          $ref: '#/components/schemas/runCounter'
      required:
      - runCounter
      - lastUpdatedTimestamp
      type: object
    environmentVariable:
      properties:
        name:
          type: string
        value:
          type: string
      required:
      - name
      - value
      type: object
    errorResponse:
      description: Body of an error response. A 429 sent because the service is at
        capacity has no body.
      properties:
        code:
          description: Machine-readable cause, set on some errors only. `ORG_SUSPENDED`
            (402) means the organization's access is suspended because its credits
            are used up. `TIER_TIMEOUT_EXCEEDED` (403) means an experience's container
            timeout is above the tier's cap. `TIER_GPU_NOT_ALLOWED` (403) means the
            system asks for GPUs, which the tier does not allow. `NO_ALLOWED_INSTANCE`
            (403) means none of the instance types the organization may use meets
            the system's CPU, memory, GPU, GPU type and instance family requirements.
            `TIER_CONCURRENCY_LIMIT` (429) means the organization is running as many
            batches as its tier allows, with light batches counted against a separate
            limit.
          type: string
        message:
          description: What went wrong, written for people. The wording can change,
            so match on `code` or the status instead of parsing it.
          type: string
      required:
      - message
      type: object
    excludedExperienceID:
      format: uuid
      type: string
    executionError:
      properties:
        errorCode:
          description: Standardized error code (e.g., UNKNOWN_ERROR, NONZERO_EXIT_CODE)
          type: string
        errorText:
          description: Error text
          type: string
        exitCode:
          description: Container exit code when applicable
          nullable: true
          type: integer
        metadata:
          description: Error metadata
          type: object
        parentID:
          description: ID of the parent object (e.g., job ID, batch ID)
          format: uuid
          type: string
        parentType:
          description: Type of the parent object (e.g., JOB, BATCH)
          type: string
        runCounter:
          description: Run counter of the error
          type: integer
      required:
      - errorCode
      type: object
    executionStep:
      type: string
    experience:
      properties:
        archived:
          type: boolean
        cacheExempt:
          deprecated: true
          description: Deprecated; use cacheMethod. True when cacheMethod is NONE.
          type: boolean
        cacheMethod:
          $ref: '#/components/schemas/cacheMethod'
        containerTimeoutSeconds:
          format: int32
          type: integer
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        customFields:
          description: Custom field key/value pairs associated with the experience.
          items:
            $ref: '#/components/schemas/customFieldDefinition'
          type: array
        description:
          type: string
        environmentVariables:
          items:
            $ref: '#/components/schemas/environmentVariable'
          type: array
        experienceID:
          $ref: '#/components/schemas/experienceID'
        itemCount:
          description: Number of objects in the experience's source data, populated
            once the data has been probed.
          nullable: true
          type: integer
        lastCachedTimestamp:
          description: When the experience's cache tier was last populated. Null if
            never cached (always null for cacheMethod NONE).
          format: date-time
          nullable: true
          type: string
        location:
          deprecated: true
          description: '[DEPRECATED] This field was previously used to report an experience''s
            location. Experiences can now be defined with multiple locations, this
            field will display the first location; this field will be removed in a
            future version.'
          type: string
        locations:
          items:
            type: string
          type: array
        name:
          $ref: '#/components/schemas/experienceName'
        orgID:
          $ref: '#/components/schemas/orgID'
        profile:
          $ref: '#/components/schemas/profile'
        projectID:
          $ref: '#/components/schemas/projectID'
        sizeBytes:
          description: Total size of the experience's source data in bytes, populated
            once the data has been probed. Null for unprobeable (e.g. local-only)
            locations.
          format: int64
          nullable: true
          type: integer
        updateTimestamp:
          $ref: '#/components/schemas/timestamp'
        updateUserID:
          $ref: '#/components/schemas/userID'
        userID:
          $ref: '#/components/schemas/userID'
      required:
      - archived
      - experienceID
      - projectID
      - name
      - description
      - location
      - locations
      - containerTimeoutSeconds
      - profile
      - environmentVariables
      - creationTimestamp
      - updateTimestamp
      - updateUserID
      - userID
      - orgID
      - cacheMethod
      - cacheExempt
      - customFields
      type: object
    experienceFilterInput:
      properties:
        name:
          description: Filter experiences by name
          type: string
        search:
          description: A search query. Supports searching by tag_id
          example: tag_id IN ("71b96a67-9990-426b-993e-0f3d9c6bbe48")
          type: string
        text:
          description: Filter experiences by a text string on name and description
          type: string
      type: object
    experienceID:
      format: uuid
      type: string
    experienceLocation:
      properties:
        location:
          format: uri
          type: string
        projectId:
          format: uuid
          type: string
      type: object
    experienceLocationContents:
      properties:
        files:
          description: Per-file details of the objects currently at the location.
          items:
            $ref: '#/components/schemas/experienceLocationFile'
          type: array
        isCloud:
          type: boolean
        objectCount:
          type: integer
        objects:
          items:
            type: string
          type: array
        totalSizeBytes:
          format: int64
          type: integer
      type: object
    experienceLocationFile:
      properties:
        lastModified:
          format: date-time
          type: string
        name:
          description: The object's key relative to the location prefix.
          type: string
        sizeBytes:
          format: int64
          type: integer
      type: object
    experienceName:
      minLength: 1
      type: string
    experienceTag:
      properties:
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          type: string
        experienceTagID:
          $ref: '#/components/schemas/experienceTagID'
        name:
          $ref: '#/components/schemas/experienceTagName'
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        userID:
          $ref: '#/components/schemas/userID'
      required:
      - experienceTagID
      - projectID
      - name
      - description
      - creationTimestamp
      - userID
      - orgID
      type: object
    experienceTagID:
      format: uuid
      type: string
    experienceTagName:
      type: string
    fileName:
      type: string
    fileSize:
      format: int64
      type: integer
    friendlyName:
      type: string
    getQuotaOutput:
      properties:
        availableTokens:
          format: int32
          type: integer
        maxTokens:
          format: int32
          type: integer
        orgID:
          $ref: '#/components/schemas/orgID'
        secondsUntilRefresh:
          format: int32
          type: integer
      type: object
    job:
      properties:
        batchID:
          $ref: '#/components/schemas/batchID'
        branchID:
          $ref: '#/components/schemas/branchID'
        buildID:
          $ref: '#/components/schemas/buildID'
        conflatedStatus:
          $ref: '#/components/schemas/conflatedJobStatus'
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          type: string
        executionError:
          $ref: '#/components/schemas/executionError'
        executionErrors:
          items:
            $ref: '#/components/schemas/executionError'
          type: array
        experienceEnvironmentVariables:
          items:
            $ref: '#/components/schemas/environmentVariable'
          type: array
        experienceID:
          $ref: '#/components/schemas/experienceID'
        experienceName:
          $ref: '#/components/schemas/experienceName'
        experienceProfile:
          type: string
        hasLogAnalysis:
          type: boolean
        jobID:
          $ref: '#/components/schemas/jobID'
        jobMetricsStatus:
          $ref: '#/components/schemas/metricStatus'
        jobStatus:
          $ref: '#/components/schemas/jobStatus'
        lastRunTimestamp:
          $ref: '#/components/schemas/timestamp'
        lastUpdatedTimestamp:
          $ref: '#/components/schemas/timestamp'
        orgID:
          $ref: '#/components/schemas/orgID'
        outputLocation:
          type: string
        parameters:
          $ref: '#/components/schemas/batchParameters'
        projectID:
          $ref: '#/components/schemas/projectID'
        runCounter:
          $ref: '#/components/schemas/runCounter'
        statusHistory:
          $ref: '#/components/schemas/jobStatusHistory'
        systemID:
          $ref: '#/components/schemas/systemID'
        userID:
          $ref: '#/components/schemas/userID'
        workerID:
          type: string
      type: object
    jobID:
      format: uuid
      type: string
    jobLog:
      allOf:
      - $ref: '#/components/schemas/log'
      - properties:
          jobID:
            $ref: '#/components/schemas/jobID'
        type: object
    jobMetricsStatusCounts:
      properties:
        failBlock:
          type: integer
        failWarn:
          type: integer
        noStatusReported:
          type: integer
        notApplicable:
          type: integer
        passed:
          type: integer
        raw:
          type: integer
      required:
      - passed
      - raw
      - noStatusReported
      - notApplicable
      - failWarn
      - failBlock
      type: object
    jobStatus:
      enum:
      - SUBMITTED
      - EXPERIENCE_RUNNING
      - METRICS_QUEUED
      - METRICS_RUNNING
      - ERROR
      - SUCCEEDED
      - CANCELLED
      type: string
    jobStatusHistory:
      items:
        $ref: '#/components/schemas/jobStatusHistoryType'
      type: array
    jobStatusHistoryType:
      properties:
        status:
          $ref: '#/components/schemas/jobStatus'
        updatedAt:
          $ref: '#/components/schemas/timestamp'
      type: object
    labelledBuild:
      properties:
        buildID:
          $ref: '#/components/schemas/buildID'
        buildType:
          type: string
      required:
      - buildID
      - buildType
      type: object
    labelledBuilds:
      items:
        $ref: '#/components/schemas/labelledBuild'
      nullable: true
      type: array
    lightBatchInput:
      properties:
        batchName:
          $ref: '#/components/schemas/name'
        branchID:
          $ref: '#/components/schemas/branchID'
        metricsSetName:
          $ref: '#/components/schemas/metricsSetName'
        priority:
          maximum: 32767
          minimum: 0
          nullable: true
          type: integer
        systemID:
          $ref: '#/components/schemas/systemID'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
        testSuiteRevision:
          $ref: '#/components/schemas/testSuiteRevision'
        version:
          description: 'Optional. When provided, the latest existing build matching
            (branchID, systemID, version) is reused; a new build is created only if
            none is found. When omitted, a new build is always created with version
            "n/a".

            '
          type: string
      required:
      - branchID
      type: object
    lightJobStatus:
      enum:
      - SUCCEEDED
      - ERROR
      type: string
    listAgentResultsOutput:
      description: 'Paginated list of recent batch+test activity for a single HiL
        Agent,

        sorted by `updated_at DESC, jobID DESC` so the cursor is stable

        across heartbeat updates. Surfaces every test the agent has run

        for the caller''s org via the structural jobs_status_history.agent_id

        join.

        '
      properties:
        items:
          items:
            $ref: '#/components/schemas/agentRecentActivity'
          type: array
        nextPageToken:
          type: string
        total:
          description: Total number of results for the agent across all pages, useful
            for the Results tab count in the UI.
          type: integer
      required:
      - items
      - total
      type: object
    listAgentUtilizationOutput:
      description: "Utilization series for every non-removed agent in the org, ordered\n\
        by agentID ASC (the listAgents order). Not paginated \u2014 an org has\na\
        \ bounded number of HiL agents. windowStart/windowEnd echo the\nresolved window\
        \ after server-side defaulting. Agents with no\nactivity in the window appear\
        \ with explicit all-zero buckets.\ntotalTestsRun counts job runs started in\
        \ the window on the listed\n(non-archived) agents; topExperiences ranks experiences\
        \ by total\nrunning seconds on any listed agent. Runs on archived agents are\n\
        excluded from both, matching the agents series. avgQueueSeconds/medianQueueSeconds\n\
        aggregate the queue wait (submission to execution start) of runs\nstarted\
        \ in the window, fleet-wide; both are omitted when no\nstarted run has a measurable\
        \ wait.\n"
      properties:
        agents:
          items:
            $ref: '#/components/schemas/agentUtilizationSeries'
          type: array
        avgQueueSeconds:
          format: double
          type: number
        interval:
          enum:
          - hour
          - day
          type: string
        medianQueueSeconds:
          format: double
          type: number
        topExperiences:
          items:
            $ref: '#/components/schemas/agentUtilizationTopExperience'
          type: array
        totalTestsRun:
          type: integer
        windowEnd:
          format: date-time
          type: string
        windowStart:
          format: date-time
          type: string
      required:
      - interval
      - windowStart
      - windowEnd
      - totalTestsRun
      - agents
      - topExperiences
      type: object
    listAgentsOutput:
      properties:
        agents:
          items:
            $ref: '#/components/schemas/agent'
          type: array
        latestKnownVersion:
          description: 'The latest released agent version the server is aware of.
            Empty

            string when the server cannot currently determine it; clients

            should treat empty as "no canonical latest" and suppress the

            per-agent out-of-date indicator entirely.

            '
          type: string
      required:
      - agents
      - latestKnownVersion
      type: object
    listAllJobsOutput:
      properties:
        jobs:
          items:
            $ref: '#/components/schemas/job'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      type: object
    listAssetBuildsOutput:
      properties:
        builds:
          items:
            $ref: '#/components/schemas/assetBuildReference'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      required:
      - builds
      - nextPageToken
      - total
      type: object
    listAssetRevisionsOutput:
      properties:
        assets:
          items:
            $ref: '#/components/schemas/asset'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      required:
      - assets
      - nextPageToken
      - total
      type: object
    listAssetsOutput:
      properties:
        assets:
          items:
            $ref: '#/components/schemas/asset'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      required:
      - assets
      - nextPageToken
      - total
      type: object
    listBatchErrorsOutput:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/executionError'
          type: array
        jobExecutionErrors:
          items:
            $ref: '#/components/schemas/executionError'
          type: array
      type: object
    listBatchLogsOutput:
      properties:
        logs:
          items:
            $ref: '#/components/schemas/batchLog'
          type: array
        nextPageToken:
          type: string
      type: object
    listBatchRunsOutput:
      properties:
        runs:
          items:
            $ref: '#/components/schemas/entityRun'
          type: array
      type: object
    listBatchesOutput:
      properties:
        batches:
          items:
            $ref: '#/components/schemas/batch'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      type: object
    listBranchesOutput:
      properties:
        branches:
          items:
            $ref: '#/components/schemas/branch'
          type: array
        nextPageToken:
          type: string
      type: object
    listBuildAssetsOutput:
      items:
        $ref: '#/components/schemas/buildAssetLink'
      type: array
    listBuildsOutput:
      properties:
        builds:
          items:
            $ref: '#/components/schemas/build'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      required:
      - builds
      - nextPageToken
      - total
      type: object
    listExperienceCustomFieldsOutput:
      properties:
        customFields:
          items:
            $ref: '#/components/schemas/customFieldDefinition'
          type: array
      required:
      - customFields
      type: object
    listExperienceTagsOutput:
      properties:
        experienceTags:
          items:
            $ref: '#/components/schemas/experienceTag'
          type: array
        nextPageToken:
          type: string
      type: object
    listExperiencesOutput:
      properties:
        experiences:
          items:
            $ref: '#/components/schemas/experience'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      type: object
    listJobLogsOutput:
      properties:
        logs:
          items:
            $ref: '#/components/schemas/jobLog'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      type: object
    listJobRunsOutput:
      properties:
        runs:
          items:
            $ref: '#/components/schemas/entityRun'
          type: array
      type: object
    listJobsOutput:
      properties:
        jobs:
          items:
            $ref: '#/components/schemas/job'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      type: object
    listMetricsBuildOutput:
      properties:
        metricsBuilds:
          items:
            $ref: '#/components/schemas/metricsBuild'
          type: array
        nextPageToken:
          type: string
        total:
          type: integer
      required:
      - metricsBuilds
      - nextPageToken
      - total
      type: object
    listPoolLabelQueueOutput:
      properties:
        items:
          items:
            $ref: '#/components/schemas/poolLabelQueueItem'
          type: array
      required:
      - items
      type: object
    listPoolLabelsOutput:
      properties:
        nextPageToken:
          type: string
        poolLabels:
          items:
            $ref: '#/components/schemas/poolLabel'
          type: array
      type: object
    listProjectsOutput:
      properties:
        nextPageToken:
          type: string
        projects:
          items:
            $ref: '#/components/schemas/project'
          type: array
      type: object
    listSystemsOutput:
      properties:
        nextPageToken:
          type: string
        systems:
          items:
            $ref: '#/components/schemas/system'
          type: array
      type: object
    listTestSuiteOutput:
      properties:
        nextPageToken:
          type: string
        testSuites:
          items:
            $ref: '#/components/schemas/testSuite'
          type: array
        total:
          type: integer
      required:
      - testSuites
      - nextPageToken
      - total
      type: object
    listTestSuiteRevisionsOutput:
      properties:
        nextPageToken:
          type: string
        testSuites:
          items:
            $ref: '#/components/schemas/testSuite'
          type: array
      type: object
    listWorkflowRunsOutput:
      properties:
        nextPageToken:
          type: string
        total:
          type: integer
        workflowRuns:
          items:
            $ref: '#/components/schemas/workflowRun'
          type: array
      required:
      - workflowRuns
      - nextPageToken
      - total
      type: object
    listWorkflowSuitesOutput:
      properties:
        workflowSuites:
          items:
            $ref: '#/components/schemas/workflowSuiteOutput'
          type: array
      required:
      - workflowSuites
      type: object
    listWorkflowsOutput:
      properties:
        nextPageToken:
          type: string
        total:
          type: integer
        workflows:
          items:
            $ref: '#/components/schemas/workflow'
          type: array
      required:
      - workflows
      - nextPageToken
      - total
      type: object
    log:
      properties:
        checksum:
          $ref: '#/components/schemas/checksum'
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        downloadUrl:
          description: Presigned URL with Content-Disposition attachment header for
            browser-native file downloads. Not set for external (BYO-bucket) logs.
          format: uri
          type: string
        executionStep:
          $ref: '#/components/schemas/executionStep'
        external:
          description: True if the log is stored in a customer-owned (BYO) bucket.
            For external logs, logOutputLocation will echo the raw location (no presigned
            URL).
          type: boolean
        fileName:
          $ref: '#/components/schemas/fileName'
        filePath:
          description: The directory path relative to the output root (empty for root-level
            files)
          type: string
        fileSize:
          $ref: '#/components/schemas/fileSize'
        fullPath:
          description: The fully qualified path (filePath/fileName) of the log file
          readOnly: true
          type: string
        location:
          $ref: '#/components/schemas/logLocation'
        logID:
          $ref: '#/components/schemas/logID'
        logOutputLocation:
          format: uri
          type: string
        logType:
          $ref: '#/components/schemas/logType'
        orgID:
          $ref: '#/components/schemas/orgID'
        userID:
          $ref: '#/components/schemas/userID'
      type: object
    logID:
      format: uuid
      type: string
    logLocation:
      format: uri
      type: string
    logType:
      enum:
      - OTHER_LOG
      - METRICS_OUTPUT_LOG
      - CONTAINER_LOG
      - EXECUTION_LOG
      - MCAP_LOG
      - MP4_LOG
      - ARCHIVE_LOG
      - FOXGLOVE_MCAP_LOG
      - RERUN_IO_LOG
      - ERROR_LOG
      - SERVICE_LOG
      - EMISSIONS_LOG
      - SYSTEM_LOG
      type: string
    metricStatus:
      enum:
      - PASSED
      - FAIL_WARN
      - RAW
      - NOT_APPLICABLE
      - FAIL_BLOCK
      - NO_STATUS_REPORTED
      type: string
    metricsBuild:
      properties:
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        imageUri:
          $ref: '#/components/schemas/metricsBuildImageUri'
        metricsBuildID:
          $ref: '#/components/schemas/metricsBuildID'
        name:
          $ref: '#/components/schemas/metricsBuildName'
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        userID:
          $ref: '#/components/schemas/userID'
        version:
          $ref: '#/components/schemas/metricsBuildVersion'
      required:
      - metricsBuildID
      - projectID
      - name
      - version
      - imageUri
      - creationTimestamp
      - userID
      - orgID
      type: object
    metricsBuildID:
      format: uuid
      type: string
    metricsBuildImageUri:
      type: string
    metricsBuildName:
      type: string
    metricsBuildVersion:
      type: string
    metricsSetName:
      nullable: true
      type: string
    mutateSystemsToExperienceInput:
      allOf:
      - $ref: '#/components/schemas/selectExperiencesInput'
      - required:
        - systemIDs
      - properties:
          systemIDs:
            items:
              $ref: '#/components/schemas/systemID'
            type: array
        type: object
    name:
      type: string
    orgID:
      type: string
    parameterSweepID:
      format: uuid
      type: string
    pauseAgentInput:
      description: Optional metadata supplied with a pause request.
      properties:
        reason:
          description: "Optional free-text reason for the pause. It is stored on the\n\
            agent, returned in list/get responses, written to the pause audit\nhistory,\
            \ and surfaced in the paused agent's logs on the customer\nhost \u2014\
            \ so it is bounded to 500 characters and restricted to\nprintable text\
            \ (no control characters).\n"
          maxLength: 500
          pattern: ^\P{Cc}*$
          type: string
      type: object
    pauseAgentOutput:
      description: 'Response shape for pauseAgent. Because pausing is idempotent,
        these

        fields echo the effective pause slot: re-pausing an already-paused

        agent returns the original pausedAt/reason/actor rather than the

        values from this call.

        '
      properties:
        agentID:
          type: string
        pauseReason:
          type: string
        pausedAt:
          format: date-time
          type: string
        pausedBy:
          type: string
        reportedPausedAt:
          format: date-time
          type: string
      required:
      - agentID
      - pausedAt
      - pausedBy
      type: object
    poolLabel:
      type: string
    poolLabelQueueBatch:
      description: One batch slot inside a pool-label-queue group. Used for active,
        queued, and completed batch lists.
      properties:
        batchID:
          format: uuid
          type: string
        batchName:
          type: string
        branchName:
          type: string
        conflatedStatus:
          $ref: '#/components/schemas/conflatedBatchStatus'
        priority:
          description: "Raw scheduler priority. batches.priority defaults to 1000\
            \ and\nthe scheduler sorts ASC, so a value below 1000 is elevated\nabove\
            \ default (rendered \"High\") and above 1000 is deprioritised\n(rendered\
            \ \"Low\"). Equal to 1000 is the default (no pill).\nDisplay-only \u2014\
            \ setting priority via the UI is not yet supported.\n"
          type: integer
        projectID:
          format: uuid
          type: string
        queuePosition:
          description: "1-based position within the queued list (e.g. 1 for \"Queued\
            \ 1\").\nNull on active and completed entries \u2014 only queued batches\
            \ carry\na position.\n"
          type: integer
        testSuiteID:
          description: "ID of the test suite the batch belongs to, for linking to\
            \ the test-suite page. Optional \u2014 null when the batch is adhoc or\
            \ the test_suites row no longer exists."
          format: uuid
          type: string
        testSuiteName:
          description: 'Name of the test suite the batch belongs to, or omitted when

            adhoc / the test_suites row no longer exists.

            '
          type: string
        testSuiteRevision:
          description: "Revision of the test suite the batch ran. Optional \u2014\
            \ present only alongside testSuiteID, since the test-suite page is revision-specific."
          format: int32
          type: integer
        timestamp:
          format: date-time
          type: string
      required:
      - batchID
      - batchName
      - conflatedStatus
      - timestamp
      - priority
      type: object
    poolLabelQueueItem:
      description: One pool-label group in the queue view. Groups carry an optional
        active batch, queued batches, recently-completed batches (under a collapse),
        and the list of agents that have served this label.
      properties:
        activeBatches:
          description: "Batches in a non-terminal, non-SUBMITTED status currently\
            \ running under this pool label. Multiple concurrent runners are normal\
            \ \u2014 agents in a pool can serve more than one batch at a time."
          items:
            $ref: '#/components/schemas/poolLabelQueueBatch'
          type: array
        associatedAgentIDs:
          description: 'IDs of agents that either advertise this pool label OR have
            at

            least one historical job on a batch carrying it. Soft-deleted

            agents are excluded.

            '
          items:
            type: string
          type: array
        completedBatches:
          description: Batches in terminal status (SUCCEEDED / CANCELLED / ERROR)
            within the completedSinceDays window.
          items:
            $ref: '#/components/schemas/poolLabelQueueBatch'
          type: array
        poolLabel:
          description: The colon-prefixed root form (e.g. "RackHiLConfig"); see scheduler
            tasks.sql split_part(label, ':', 1) convention.
          type: string
        queuedBatches:
          items:
            $ref: '#/components/schemas/poolLabelQueueBatch'
          type: array
      required:
      - poolLabel
      - activeBatches
      - queuedBatches
      - completedBatches
      - associatedAgentIDs
      type: object
    poolLabels:
      items:
        $ref: '#/components/schemas/poolLabel'
      type: array
    profile:
      type: string
    project:
      properties:
        agentMarkdown:
          type: string
        archived:
          $ref: '#/components/schemas/archived'
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          type: string
        name:
          type: string
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        userID:
          $ref: '#/components/schemas/userID'
      required:
      - projectID
      - name
      - description
      - creationTimestamp
      - userID
      - orgID
      - archived
      - agentMarkdown
      type: object
    projectID:
      format: uuid
      type: string
    removeAssetsFromBuildInput:
      properties:
        assets:
          items:
            $ref: '#/components/schemas/assetBuildLinkInput'
          minItems: 1
          type: array
      required:
      - assets
      type: object
    requiredHeaders:
      additionalProperties:
        type: string
      description: Headers the client MUST include when uploading. Includes x-amz-tagging
        when tags were provided.
      type: object
    rerunBatchInput:
      properties:
        jobIDs:
          items:
            $ref: '#/components/schemas/jobID'
          type: array
        rerunMetricsOnly:
          default: false
          type: boolean
        syncBatch:
          default: false
          type: boolean
      required:
      - syncBatch
      type: object
    rerunBatchOutput:
      properties:
        batchID:
          $ref: '#/components/schemas/batchID'
        jobIDs:
          items:
            $ref: '#/components/schemas/jobID'
          type: array
        runCounter:
          $ref: '#/components/schemas/runCounter'
      type: object
    reviseAssetInput:
      properties:
        cacheMethod:
          $ref: '#/components/schemas/cacheMethod'
        locations:
          items:
            type: string
          type: array
        mountFolder:
          type: string
        version:
          type: string
      required:
      - locations
      - version
      type: object
    reviseTestSuiteInput:
      properties:
        adhoc:
          type: boolean
        allExperiences:
          type: boolean
        description:
          $ref: '#/components/schemas/testSuiteDescription'
        excludedExperienceIDs:
          items:
            $ref: '#/components/schemas/excludedExperienceID'
          type: array
        experiences:
          items:
            $ref: '#/components/schemas/experienceID'
          type: array
        filters:
          $ref: '#/components/schemas/experienceFilterInput'
        metricsBuildID:
          $ref: '#/components/schemas/metricsBuildID'
        metricsSetName:
          $ref: '#/components/schemas/metricsSetName'
        name:
          $ref: '#/components/schemas/testSuiteName'
        show_on_summary:
          type: boolean
        systemID:
          $ref: '#/components/schemas/systemID'
        updateMetricsBuild:
          type: boolean
        updateMetricsSet:
          type: boolean
      required:
      - updateMetricsBuild
      type: object
    runCounter:
      type: integer
    runnerType:
      enum:
      - SDK
      - AGENT
      - CLOUD
      type: string
    selectExperiencesInput:
      properties:
        allExperiences:
          type: boolean
        experiences:
          items:
            $ref: '#/components/schemas/experienceID'
          type: array
        filters:
          $ref: '#/components/schemas/experienceFilterInput'
      type: object
    system:
      properties:
        architecture:
          $ref: '#/components/schemas/architecture'
        archived:
          $ref: '#/components/schemas/archived'
        build_gpus:
          type: integer
        build_memory_mib:
          type: integer
        build_shared_memory_mb:
          type: integer
        build_vcpus:
          type: integer
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          type: string
        gpu_type:
          description: The GPU model the build and metrics build need when they request
            GPUs, or null for any GPU the organization may use.
          nullable: true
          type: string
        instance_families:
          description: EC2 instance families the build and metrics build may run on.
            Empty means any family the organization may use.
          items:
            type: string
          type: array
        metrics_build_gpus:
          nullable: true
          type: integer
        metrics_build_memory_mib:
          nullable: true
          type: integer
        metrics_build_shared_memory_mb:
          nullable: true
          type: integer
        metrics_build_vcpus:
          nullable: true
          type: integer
        name:
          type: string
        numBatches:
          type: integer
        numBuilds:
          type: integer
        numExperiences:
          type: integer
        numMetricsBuilds:
          type: integer
        numTestSuites:
          type: integer
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        systemID:
          $ref: '#/components/schemas/systemID'
        updateTimestamp:
          $ref: '#/components/schemas/timestamp'
        updateUserID:
          $ref: '#/components/schemas/userID'
        userID:
          $ref: '#/components/schemas/userID'
      required:
      - systemID
      - projectID
      - name
      - description
      - build_vcpus
      - build_memory_mib
      - build_gpus
      - build_shared_memory_mb
      - architecture
      - numBuilds
      - numTestSuites
      - numExperiences
      - numMetricsBuilds
      - numBatches
      - creationTimestamp
      - updateTimestamp
      - updateUserID
      - userID
      - orgID
      - archived
      type: object
    systemID:
      format: uuid
      type: string
    testSuite:
      properties:
        archived:
          type: boolean
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          $ref: '#/components/schemas/testSuiteDescription'
        experiences:
          items:
            $ref: '#/components/schemas/experienceID'
          type: array
        metricsBuildID:
          $ref: '#/components/schemas/metricsBuildID'
        metricsSetName:
          $ref: '#/components/schemas/metricsSetName'
        name:
          $ref: '#/components/schemas/testSuiteName'
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        showOnSummary:
          type: boolean
        summaryReferenceDate:
          $ref: '#/components/schemas/timestamp'
        systemID:
          $ref: '#/components/schemas/systemID'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
        testSuiteRevision:
          $ref: '#/components/schemas/testSuiteRevision'
        updateTimestamp:
          $ref: '#/components/schemas/timestamp'
        updateUserID:
          $ref: '#/components/schemas/userID'
        userID:
          $ref: '#/components/schemas/userID'
      required:
      - archived
      - testSuiteID
      - testSuiteRevision
      - name
      - description
      - projectID
      - systemID
      - experiences
      - userID
      - orgID
      - creationTimestamp
      - updateTimestamp
      - updateUserID
      - showOnSummary
      type: object
    testSuiteBatchInput:
      properties:
        allowableFailurePercent:
          nullable: true
          type: integer
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        batchName:
          $ref: '#/components/schemas/name'
        blueprintName:
          nullable: true
          type: string
        blueprintVersion:
          nullable: true
          type: integer
        buildID:
          $ref: '#/components/schemas/buildID'
        features:
          $ref: '#/components/schemas/batchFeatures'
        labelledBuilds:
          $ref: '#/components/schemas/labelledBuilds'
        parameters:
          $ref: '#/components/schemas/batchParameters'
        poolLabels:
          $ref: '#/components/schemas/poolLabels'
        priority:
          maximum: 32767
          minimum: 0
          nullable: true
          type: integer
        triggeredVia:
          $ref: '#/components/schemas/triggeredVia'
      required:
      - buildID
      type: object
    testSuiteDescription:
      type: string
    testSuiteID:
      format: uuid
      type: string
    testSuiteName:
      minLength: 1
      type: string
    testSuiteRevision:
      format: int32
      type: integer
    timestamp:
      format: date-time
      type: string
    triggeredVia:
      enum:
      - LOCAL
      - WEBAPP
      - GITLAB
      - GITHUB
      type: string
    unpauseAgentOutput:
      description: Response shape for unpauseAgent. The agent is no longer paused.
      properties:
        agentID:
          type: string
      required:
      - agentID
      type: object
    updateAssetInput:
      properties:
        description:
          type: string
        name:
          type: string
      type: object
    updateBatchInput:
      properties:
        description:
          type: string
      required:
      - description
      type: object
    updateBuildFields:
      properties:
        branchID:
          format: uuid
          type: string
        description:
          $ref: '#/components/schemas/buildDescription'
        name:
          $ref: '#/components/schemas/buildName'
      type: object
    updateBuildInput:
      properties:
        build:
          $ref: '#/components/schemas/updateBuildFields'
        updateMask:
          $ref: '#/components/schemas/updateMask'
      type: object
    updateExperienceFields:
      properties:
        cacheExempt:
          deprecated: true
          description: Deprecated; use cacheMethod. true is the same as cacheMethod
            NONE.
          type: boolean
        cacheMethod:
          $ref: '#/components/schemas/cacheMethod'
        containerTimeoutSeconds:
          format: int32
          type: integer
        customFields:
          description: Custom field key/value pairs to associate with the experience.
            Field names are case-insensitive. Each field can have multiple values.
            When updating, this replaces all existing custom fields.
          items:
            $ref: '#/components/schemas/customFieldDefinition'
          type: array
        description:
          type: string
        environmentVariables:
          items:
            $ref: '#/components/schemas/environmentVariable'
          type: array
        experienceTagIDs:
          items:
            $ref: '#/components/schemas/experienceTagID'
          type: array
        location:
          deprecated: true
          description: '[DEPRECATED] This field was previously used to define an experience''s
            location. Experiences can now be defined with multiple locations, using
            the locations field. This field will be removed in a future version.'
          minLength: 1
          type: string
        locations:
          items:
            minLength: 1
            type: string
          type: array
        name:
          $ref: '#/components/schemas/experienceName'
        profile:
          $ref: '#/components/schemas/profile'
        systemIDs:
          items:
            $ref: '#/components/schemas/systemID'
          type: array
      type: object
    updateExperienceInput:
      properties:
        experience:
          $ref: '#/components/schemas/updateExperienceFields'
        updateMask:
          $ref: '#/components/schemas/updateMask'
      type: object
    updateExperienceTagFields:
      properties:
        description:
          type: string
        name:
          $ref: '#/components/schemas/experienceTagName'
      type: object
    updateExperienceTagInput:
      properties:
        experienceTag:
          $ref: '#/components/schemas/updateExperienceTagFields'
        updateMask:
          $ref: '#/components/schemas/updateMask'
      type: object
    updateJobInput:
      properties:
        description:
          type: string
      required:
      - description
      type: object
    updateMask:
      items:
        type: string
      type: array
    updateProjectFields:
      properties:
        agentMarkdown:
          maxLength: 65536
          type: string
        description:
          type: string
        name:
          type: string
      type: object
    updateProjectInput:
      properties:
        project:
          $ref: '#/components/schemas/updateProjectFields'
        updateMask:
          $ref: '#/components/schemas/updateMask'
      type: object
    updateSystemInput:
      properties:
        architecture:
          $ref: '#/components/schemas/architecture'
        build_gpus:
          type: integer
        build_memory_mib:
          type: integer
        build_shared_memory_mb:
          type: integer
        build_vcpus:
          type: integer
        description:
          type: string
        gpu_type:
          description: The GPU model the build and metrics build need when they request
            GPUs. Omit to leave it unchanged; an empty string clears it.
          type: string
        instance_families:
          description: EC2 instance families the build and metrics build may run on.
            Omit to leave them unchanged; an empty list clears them.
          items:
            type: string
          type: array
        metrics_build_gpus:
          nullable: true
          type: integer
        metrics_build_memory_mib:
          nullable: true
          type: integer
        metrics_build_shared_memory_mb:
          nullable: true
          type: integer
        metrics_build_vcpus:
          nullable: true
          type: integer
        name:
          type: string
      type: object
    updateWorkflowInput:
      properties:
        ciWorkflowLink:
          nullable: true
          type: string
        description:
          type: string
        name:
          type: string
      type: object
    updateWorkflowSuiteInput:
      properties:
        enabled:
          $ref: '#/components/schemas/enabled'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
      required:
      - testSuiteID
      - enabled
      type: object
    updateWorkflowSuiteOutput:
      properties:
        enabled:
          $ref: '#/components/schemas/enabled'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
        workflowID:
          $ref: '#/components/schemas/workflowID'
      required:
      - testSuiteID
      - workflowID
      - enabled
      type: object
    updateWorkflowSuitesInput:
      properties:
        workflowSuites:
          items:
            $ref: '#/components/schemas/updateWorkflowSuiteInput'
          type: array
      required:
      - workflowSuites
      type: object
    updateWorkflowSuitesOutput:
      properties:
        workflowSuites:
          items:
            $ref: '#/components/schemas/updateWorkflowSuiteOutput'
          type: array
      required:
      - workflowSuites
      type: object
    userID:
      type: string
    workflow:
      properties:
        archived:
          $ref: '#/components/schemas/archived'
        ciWorkflowLink:
          nullable: true
          type: string
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        description:
          type: string
        lastRunTimestamp:
          $ref: '#/components/schemas/timestamp'
        name:
          type: string
        orgID:
          $ref: '#/components/schemas/orgID'
        projectID:
          $ref: '#/components/schemas/projectID'
        requiredSystems:
          description: 'Distinct systems covered by this workflow''s currently-enabled,

            non-archived test suites. To create a workflow run, the caller

            must provide one build for each of these systems via

            `createWorkflowRunInput.builds`. An enabled suite whose system has

            no matching build in the request is rejected with HTTP 422.

            '
          items:
            $ref: '#/components/schemas/systemID'
          type: array
        updateTimestamp:
          $ref: '#/components/schemas/timestamp'
        updateUserID:
          $ref: '#/components/schemas/userID'
        userID:
          $ref: '#/components/schemas/userID'
        workflowID:
          $ref: '#/components/schemas/workflowID'
      required:
      - workflowID
      - projectID
      - name
      - description
      - creationTimestamp
      - userID
      - updateTimestamp
      - updateUserID
      - orgID
      - archived
      - requiredSystems
      type: object
    workflowID:
      format: uuid
      type: string
    workflowRun:
      properties:
        associatedAccount:
          $ref: '#/components/schemas/associatedAccount'
        buildID:
          allOf:
          - $ref: '#/components/schemas/buildID'
          deprecated: true
          description: "**Deprecated**: convenience echo of the build for single-system\n\
            runs (populated when every enabled suite of the run used the same\nbuild;\
            \ omitted otherwise). Use `workflowRunTestSuites[].buildID`\ninstead \u2014\
            \ each suite carries the build it was actually exercised\nwith.\n"
          nullable: true
        creationTimestamp:
          $ref: '#/components/schemas/timestamp'
        orgID:
          $ref: '#/components/schemas/orgID'
        triggeredVia:
          $ref: '#/components/schemas/triggeredVia'
        unusedBuilds:
          description: 'Builds that were supplied via `createWorkflowRunInput.builds`
            but

            whose system is not covered by any enabled, non-archived suite of

            the workflow. The run is created and the missing-system rejection

            (HTTP 422) is unaffected; these builds are simply not exercised.

            Surfaced here so callers (e.g. CI integrations) can warn when

            they''re sending more than the workflow needs. Empty/omitted in

            the typical case.

            '
          items:
            $ref: '#/components/schemas/buildID'
          nullable: true
          type: array
        userID:
          $ref: '#/components/schemas/userID'
        workflowID:
          $ref: '#/components/schemas/workflowID'
        workflowRunID:
          $ref: '#/components/schemas/workflowRunID'
        workflowRunTestSuites:
          description: 'One row per test suite that was associated with the workflow
            at

            run time. For each enabled suite, `buildID`, `systemID`, and

            `batchID` are populated (the suite was exercised against that

            build, on that system, producing that batch). For suites that

            were disabled at run time the row is still recorded but `buildID`

            and `batchID` are null.

            '
          items:
            $ref: '#/components/schemas/workflowRunTestSuite'
          type: array
      required:
      - workflowRunID
      - workflowID
      - creationTimestamp
      - userID
      - orgID
      - workflowRunTestSuites
      type: object
    workflowRunBuildInput:
      description: "Multi-build input entry for `createWorkflowRunInput.builds`. The\n\
        caller pins a build by `buildID`; Optional per-entry `poolLabels`,\n`parameters`,\
        \ and `allowableFailurePercent` replace \u2014 and must not be\ncombined with\
        \ \u2014 the run-level fields of the same name. Per-entry\n`features` are\
        \ applied on top of the run-level `features`.\n"
      properties:
        allowableFailurePercent:
          nullable: true
          type: integer
        buildID:
          allOf:
          - $ref: '#/components/schemas/buildID'
          description: 'The build to run for this entry. The system this entry covers
            is

            derived from this build''s `system_id`. Two entries resolving to

            the same system are rejected with HTTP 400, and a build whose

            system is not covered by any enabled suite in the workflow is

            also rejected.

            '
        features:
          description: 'Features for the batches run on this entry''s system, applied
            on top

            of the run-level `features`: `name` or `+name` adds a feature, and

            `-name` removes one set at run level.

            '
          items:
            $ref: '#/components/schemas/batchFeature'
          type: array
        parameters:
          $ref: '#/components/schemas/batchParameters'
        poolLabels:
          $ref: '#/components/schemas/poolLabels'
      required:
      - buildID
      type: object
    workflowRunID:
      format: uuid
      type: string
    workflowRunTestSuite:
      description: 'One row per test suite associated with a workflow run. Enabled
        suites

        carry the build allocated to them (`buildID`), the system that build

        was for (`systemID`, copied from the test suite''s system), and the

        resulting batch (`batchID`). Disabled suites have `buildID` and

        `batchID` null.

        '
      properties:
        batchID:
          allOf:
          - $ref: '#/components/schemas/batchID'
          description: 'The batch produced for this suite. `null` for suites that
            were

            disabled at run time, and also `null` if the suite has no active

            experiences (the run is recorded for traceability but no batch is

            launched).

            '
          nullable: true
        buildID:
          allOf:
          - $ref: '#/components/schemas/buildID'
          description: 'The build allocated to this suite for this run, taken from
            the

            input `builds` entry whose system matches this suite. `null` for

            suites that were disabled at run time.

            '
          nullable: true
        systemID:
          allOf:
          - $ref: '#/components/schemas/systemID'
          description: 'The system this test suite covers (copied from the test suite
            at

            run creation time). Always populated.

            '
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
      required:
      - testSuiteID
      - systemID
      type: object
    workflowSuiteInput:
      properties:
        enabled:
          $ref: '#/components/schemas/enabled'
        testSuiteID:
          $ref: '#/components/schemas/testSuiteID'
      required:
      - testSuiteID
      - enabled
      type: object
    workflowSuiteOutput:
      properties:
        enabled:
          $ref: '#/components/schemas/enabled'
        testSuite:
          $ref: '#/components/schemas/testSuite'
        workflowID:
          $ref: '#/components/schemas/workflowID'
      required:
      - workflowID
      - testSuite
      - enabled
      type: object
  securitySchemes:
    APIKey:
      bearerFormat: API key
      description: An API key, sent as a bearer token with no exchange step. Org admins
        create and revoke keys in the SignalFlag web app, and every key starts with
        `sfk_`. A key holds the scopes of its access level. A read only key holds
        every `:read` scope, and a read and write key holds every scope. An operation
        called with a key that lacks its scope returns 403, the same as with an OAuth
        token.
      scheme: bearer
      type: http
    OAuth:
      description: An OAuth 2 access token from SignalFlag's Auth0 tenant, requested
        for the audience `https://api.resim.ai` and sent as a bearer token. A person
        signs in with the authorization code flow. A machine can use the client credentials
        flow only with a client that SignalFlag has registered for your organization.
        An operation called with a token that lacks its scope returns 403.
      flows:
        authorizationCode:
          authorizationUrl: https://resim.us.auth0.com/authorize
          refreshUrl: https://resim.us.auth0.com/oauth/token
          scopes:
            assets:read: Read assets, their revisions and the builds they are linked
              to.
            assets:write: Create, update, revise, archive and restore assets, and
              link them to builds.
            batches:read: Read batches, jobs, logs, errors, usage, legacy metrics,
              test suites and blueprints.
            batches:write: Create, update, cancel, rerun and close batches and jobs,
              upload job logs, change test suites and blueprints, and start debug
              sessions.
            builds:read: Read builds and metrics builds.
            builds:write: Create, update and delete builds, and create metrics builds.
            experienceTags:read: Read experience tags and the experiences they label.
            experienceTags:write: Create, update and delete experience tags, and add
              them to or remove them from experiences.
            experiences:read: Read experiences, their custom fields, tags, compatible
              systems and service profiles.
            experiences:write: Create, update, archive and restore experiences, and
              validate experience locations.
            projects:read: Read projects, branches and HiL agents.
            projects:write: Create, update and archive projects, create and delete
              branches, and pause, unpause and archive HiL agents.
            reports:read: Read reports, their logs and legacy metrics.
            reports:write: Create reports. No operation in this API requires it.
            sweeps:read: Read parameter sweeps.
            sweeps:write: Create and cancel parameter sweeps.
            systems:read: Read systems and the experiences compatible with them.
            systems:write: Create, update and archive systems, and change which experiences
              and metrics builds are compatible with them.
            workflows:read: Read workflows, their test suites and their runs.
            workflows:write: Create and update workflows and their test suites, and
              start workflow runs.
          tokenUrl: https://resim.us.auth0.com/oauth/token
        clientCredentials:
          scopes:
            assets:read: Read assets, their revisions and the builds they are linked
              to.
            assets:write: Create, update, revise, archive and restore assets, and
              link them to builds.
            batches:read: Read batches, jobs, logs, errors, usage, legacy metrics,
              test suites and blueprints.
            batches:write: Create, update, cancel, rerun and close batches and jobs,
              upload job logs, change test suites and blueprints, and start debug
              sessions.
            builds:read: Read builds and metrics builds.
            builds:write: Create, update and delete builds, and create metrics builds.
            experienceTags:read: Read experience tags and the experiences they label.
            experienceTags:write: Create, update and delete experience tags, and add
              them to or remove them from experiences.
            experiences:read: Read experiences, their custom fields, tags, compatible
              systems and service profiles.
            experiences:write: Create, update, archive and restore experiences, and
              validate experience locations.
            projects:read: Read projects, branches and HiL agents.
            projects:write: Create, update and archive projects, create and delete
              branches, and pause, unpause and archive HiL agents.
            reports:read: Read reports, their logs and legacy metrics.
            reports:write: Create reports. No operation in this API requires it.
            sweeps:read: Read parameter sweeps.
            sweeps:write: Create and cancel parameter sweeps.
            systems:read: Read systems and the experiences compatible with them.
            systems:write: Create, update and archive systems, and change which experiences
              and metrics builds are compatible with them.
            workflows:read: Read workflows, their test suites and their runs.
            workflows:write: Create and update workflows and their test suites, and
              start workflow runs.
          tokenUrl: https://resim.us.auth0.com/oauth/token
        implicit:
          authorizationUrl: https://resim.us.auth0.com/authorize
          scopes:
            assets:read: Read assets, their revisions and the builds they are linked
              to.
            assets:write: Create, update, revise, archive and restore assets, and
              link them to builds.
            batches:read: Read batches, jobs, logs, errors, usage, legacy metrics,
              test suites and blueprints.
            batches:write: Create, update, cancel, rerun and close batches and jobs,
              upload job logs, change test suites and blueprints, and start debug
              sessions.
            builds:read: Read builds and metrics builds.
            builds:write: Create, update and delete builds, and create metrics builds.
            experienceTags:read: Read experience tags and the experiences they label.
            experienceTags:write: Create, update and delete experience tags, and add
              them to or remove them from experiences.
            experiences:read: Read experiences, their custom fields, tags, compatible
              systems and service profiles.
            experiences:write: Create, update, archive and restore experiences, and
              validate experience locations.
            projects:read: Read projects, branches and HiL agents.
            projects:write: Create, update and archive projects, create and delete
              branches, and pause, unpause and archive HiL agents.
            reports:read: Read reports, their logs and legacy metrics.
            reports:write: Create reports. No operation in this API requires it.
            sweeps:read: Read parameter sweeps.
            sweeps:write: Create and cancel parameter sweeps.
            systems:read: Read systems and the experiences compatible with them.
            systems:write: Create, update and archive systems, and change which experiences
              and metrics builds are compatible with them.
            workflows:read: Read workflows, their test suites and their runs.
            workflows:write: Create and update workflows and their test suites, and
              start workflow runs.
      type: oauth2
externalDocs:
  description: SignalFlag API Guide, covering authentication, scopes, pagination,
    errors and limits.
  url: https://docs.signalflag.ai/reference/api/
info:
  description: The SignalFlag API manages projects, systems, builds, experiences,
    test suites and batches, and reads their results. Authentication, scopes, pagination,
    errors and limits are documented in the [API Guide](https://docs.signalflag.ai/reference/api/).
  title: SignalFlag API
  version: '0.1'
openapi: 3.0.2
security:
- OAuth: []
- APIKey: []
servers:
- description: SignalFlag API.
  url: https://api.resim.ai/v1
- description: The host that serves this document.
  url: /v1
tags:
- description: A project holds everything else, including systems, builds, experiences,
    test suites and batches, and keeps its data apart from other projects. Branches,
    which group builds, belong to a project and are managed here.
  name: projects
- description: A system is a software component under test, with the CPU, memory and
    GPU resources its builds need. A system also records which experiences and metrics
    builds are compatible with it.
  name: systems
- description: A build is one version of a system that can run experiences, packaged
    as a container image or as several images described by a Docker Compose file.
    Each build belongs to a branch and a system.
  name: builds
- description: A metrics build is a container image that runs after each test, and
    once per batch, to compute metrics from the test outputs.
  name: metricsBuilds
- description: An experience is the set of input files for a test, such as a scenario
    and its parameters, stored in cloud storage, the Foxglove Data Platform or the
    build container. An experience can also set environment variables, a timeout and
    a Docker Compose profile for the tests that run it.
  name: experiences
- description: Experience tags label experiences so they can be grouped, filtered
    and searched.
  name: experience tags
- description: A test suite is a named set of experiences to run against builds of
    one system, with the metrics to compute. Every change to a test suite creates
    a new revision, numbered from 0, and batches record the revision they ran.
  name: test_suites
- description: A batch is a group of tests that run one build against a set of experiences,
    often started from a test suite. In this API a test is called a job. These operations
    create, cancel, rerun and compare batches, and read their jobs, runs, logs and
    errors.
  name: batches
- description: Light batches record tests that run on your own infrastructure instead
    of SignalFlag's. The SignalFlag SDK uses these operations to create a batch, add
    a job for each test, upload its logs, and close each job and then the batch so
    that metrics are computed.
  name: light batches
- description: An asset is a set of shared data files, such as maps or model weights,
    that builds mount read only when they run. Every change to an asset creates a
    new revision, and a build links to specific revisions.
  name: assets
- description: A workflow groups test suites so that one request runs all of its enabled
    test suites, one batch each, against a build for each system they cover. Each
    such request is recorded as a workflow run.
  name: workflows
- description: HiL agents run tests on your own hardware for hardware-in-the-loop
    testing. These operations list agents and pool labels, report each agent's results
    and utilization, report the queue and utilization of each pool label, and pause,
    unpause or archive an agent.
  name: agents
- description: These operations read the errors recorded for a batch and its jobs.
  name: errors
- description: The quota operation reports your organization's job token quota, with
    the tokens available now and the maximum. Both are -1 when the organization's
    quota is unlimited.
  name: quota
paths:
  /agents:
    get:
      description: 'Returns the list of HiL Agents for the caller''s org. Removed
        agents

        are hidden from this list until they next check in. The response

        envelope carries `latestKnownVersion` (an empty string when no

        target is configured) so clients can render the per-agent

        out-of-date indicator without a second request.


        This endpoint is not paginated: an org has at most a handful of HiL

        agents, and the UI fetches the full set to compute exact

        active/inactive counts client-side.


        Required scopes: `projects:read`.'
      operationId: listAgents
      parameters:
      - description: 'Maximum number of recent-activity cards to return per agent,

          newest-first. Defaults to 2 (the latest-run summary). The HiL

          agent status UI requests up to 20 to render a recent-status

          timeline. Values are clamped server-side to [1, 50].

          '
        in: query
        name: recentActivityLimit
        schema:
          default: 2
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAgentsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/{agentID}:
    get:
      description: 'Returns the HiL Agent identified by agentID, scoped to the caller''s
        org. Returns 404 for removed or cross-org agents.


        Required scopes: `projects:read`.'
      operationId: getAgent
      parameters:
      - description: Agent identifier as supplied at check-in.
        in: path
        name: agentID
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/agent'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/{agentID}/archive:
    post:
      description: "Archives (soft-deletes) a HiL Agent so it disappears from\nlistAgents\
        \ until it next checks in. Idempotent \u2014 re-archiving an\nalready-archived\
        \ agent returns the original archivedAt. Cross-org\nagentIDs return 404 (the\
        \ handler's pre-check runs AgentExistsInOrg\nfirst; the archive only fires\
        \ if the agent is visible to the\ncaller).\n\nRequired scopes: `projects:write`."
      operationId: archiveAgent
      parameters:
      - in: path
        name: agentID
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/archiveAgentOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/{agentID}/pause:
    post:
      description: "Pauses a HiL Agent: it stops picking up new work and its in-flight\n\
        worker is terminated, with the interrupted task requeued rather than\ncancelled.\
        \ New-task handout to the agent's workers stops before any\nclaim, so no task\
        \ is lost. Idempotent \u2014 re-pausing an already-paused\nagent is a no-op\
        \ that preserves the original pausedAt, reason, and\nactor; changing the reason\
        \ means unpause then pause. Unknown,\ncross-org, and archived agents all return\
        \ 404. Pause state is durable\nand survives agent restarts and archive/restore\
        \ cycles until an\nexplicit unpause. The agent observes the pause within roughly\
        \ one\ncheck-in interval.\n\nRequired scopes: `projects:write`."
      operationId: pauseAgent
      parameters:
      - in: path
        name: agentID
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pauseAgentInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pauseAgentOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/{agentID}/results:
    get:
      description: 'Returns the paginated list of recent activity (batch + test pairs)

        for a single HiL Agent, sorted newest-first. Surfaces every test

        the agent has ever run for the caller''s org, joined via

        jobs_status_history.agent_id. Backs the agent detail page''s

        Results tab.


        Required scopes: `projects:read`.'
      operationId: listAgentResults
      parameters:
      - description: Agent identifier as supplied at check-in.
        in: path
        name: agentID
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - description: Optional branch IDs. When set, only results whose build is on
          one of these branches are returned (and counted).
        explode: false
        in: query
        name: branchIds
        schema:
          items:
            format: uuid
            type: string
          type: array
        style: form
      - description: Optional lower bound (RFC 3339) on a result's timestamp. When
          set, only results updated at or after this instant are returned (and counted).
        in: query
        name: createdAfter
        schema:
          format: date-time
          type: string
      - description: Optional case-insensitive substring filter on the test (experience)
          name.
        in: query
        name: text
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAgentResultsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/{agentID}/unpause:
    post:
      description: "Unpauses a HiL Agent so it resumes launching workers on its next\n\
        check-in (within roughly one check-in interval). Idempotent \u2014 a no-op\n\
        on an agent that is not paused. Clears the whole pause slot including\nthe\
        \ quiesced acknowledgement; the pause audit history is retained.\nUnknown,\
        \ cross-org, and archived agents all return 404.\n\nRequired scopes: `projects:write`."
      operationId: unpauseAgent
      parameters:
      - in: path
        name: agentID
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/unpauseAgentOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/{agentID}/utilization:
    get:
      description: "Returns a dense, time-ordered series of utilization buckets for\
        \ a\nsingle HiL Agent over [startTime, endTime). Each bucket reports\n`utilization`\
        \ \u2014 the fraction of bucket wall-clock during which the\nagent was running\
        \ at least one experience (a union of running\nintervals, in [0.0, 1.0]).\
        \ Only EXPERIENCE_RUNNING time counts;\nmetrics phases run on metrics workers,\
        \ not the agent.\nThe denominator is always full wall-clock, so buckets in\
        \ which the\nagent was offline read 0.0. Every bucket in the window is returned\n\
        explicitly, zeros included, so the series charts directly.\n\nEach bucket\
        \ also reports `offline` \u2014 the fraction of wall-clock\nduring which the\
        \ agent's heartbeat had been silent for over five\nminutes \u2014 and `testsRun`,\
        \ the number of job runs that started in\nthe bucket. Online-but-idle time\
        \ is not a separate field: derive\nit as 1 \u2212 utilization \u2212 offline.\
        \ Each run counts exactly once\nacross the series, so bucket sums match `totalTestsRun`,\
        \ the\ncount of runs started in the window. A run that began before the\n\
        window contributes running time but no count.\n\nCaveat: a job that never\
        \ recorded a terminal transition (e.g. the\nagent died mid-run) counts as\
        \ running until query time, so a\nsustained 100% utilization can indicate\
        \ a stuck run rather than a\nbusy rack \u2014 and because such a phantom run\
        \ overlaps the offline\ntime it died into, `utilization + offline` can transiently\
        \ exceed\n1.0 (clamp the derived idle at 0).\n\nCaveat: offline intervals\
        \ are recorded from this feature's\ndeployment onward. In earlier windows\
        \ `offline` reads 0 and all\nnon-running time appears as `idle`.\n\nRequired\
        \ scopes: `projects:read`."
      operationId: getAgentUtilization
      parameters:
      - description: Agent identifier as supplied at check-in.
        in: path
        name: agentID
        required: true
        schema:
          type: string
      - description: 'Inclusive window start. Defaults to endTime minus 7 days.

          Must be strictly before endTime; requests where

          startTime >= endTime return 400.

          '
        in: query
        name: startTime
        schema:
          format: date-time
          type: string
      - description: Exclusive window end. Defaults to now.
        in: query
        name: endTime
        schema:
          format: date-time
          type: string
      - description: 'Bucket width. Buckets are UTC-aligned (hour to the top of the

          hour, day to UTC midnight). The window may span at most 1000

          buckets; wider requests return 400.

          '
        in: query
        name: interval
        schema:
          default: day
          enum:
          - hour
          - day
          type: string
      - description: 'How many top experiences (ranked by total running seconds on

          this agent in the window) to include in `topExperiences`. 0

          returns an empty list. Values above 50 return 400.

          '
        in: query
        name: topExperiences
        schema:
          default: 10
          maximum: 50
          minimum: 0
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/agentUtilizationOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/poolLabels/queue:
    get:
      description: 'Returns the per-pool-label batch queue across the caller''s org.

        Pool-label matching uses the colon-prefix convention

        (split_part(label, '':'', 1)) consistent with the scheduler''s

        worker-task routing.


        Required scopes: `projects:read`.'
      operationId: listAgentPoolLabelQueue
      parameters:
      - description: Window for completed batches surfaced under the per-pool-label
          collapse. Defaults to 7.
        in: query
        name: completedSinceDays
        schema:
          default: 7
          maximum: 30
          minimum: 1
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listPoolLabelQueueOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /agents/utilization:
    get:
      description: "Returns a dense, time-ordered utilization series for every\nnon-removed\
        \ HiL Agent in the caller's org over [startTime,\nendTime), in a single request.\
        \ The agent set matches listAgents\n(agents that have checked in and are not\
        \ archived); an agent with\nno activity in the window still appears, with\
        \ an all-zero series.\nRunning intervals are loaded with one set-based query\
        \ across the\norg, not per-agent.\n\nBucket semantics are identical to getAgentUtilization:\
        \ each bucket\nreports `utilization` (union of running intervals over wall-clock,\n\
        in [0.0, 1.0]), with only EXPERIENCE_RUNNING time counting and\nexplicit zeros\
        \ for empty buckets, plus the `offline` fraction and\n`testsRun` count. The\
        \ same caveats about jobs that never\nrecorded a terminal transition and about\
        \ offline data existing\nonly from feature deployment onward apply.\n\n`totalTestsRun`\
        \ and `topExperiences` aggregate across the listed\n(non-archived) agents\
        \ \u2014 runs on archived agents are excluded,\nmatching the `agents` series\
        \ \u2014 with experiences ranked by total\nrunning seconds on any listed agent.\n\
        \nRequired scopes: `projects:read`."
      operationId: listAgentUtilization
      parameters:
      - description: 'Inclusive window start. Defaults to endTime minus 7 days.

          Must be strictly before endTime; requests where

          startTime >= endTime return 400.

          '
        in: query
        name: startTime
        schema:
          format: date-time
          type: string
      - description: Exclusive window end. Defaults to now.
        in: query
        name: endTime
        schema:
          format: date-time
          type: string
      - description: 'Bucket width. Buckets are UTC-aligned (hour to the top of the

          hour, day to UTC midnight). The window may span at most 1000

          buckets; wider requests return 400.

          '
        in: query
        name: interval
        schema:
          default: day
          enum:
          - hour
          - day
          type: string
      - description: 'How many top experiences (ranked by total running seconds in

          the window, fleet-wide) to include in `topExperiences`. 0

          returns an empty list. Values above 50 return 400.

          '
        in: query
        name: topExperiences
        schema:
          default: 10
          maximum: 50
          minimum: 0
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAgentUtilizationOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /poolLabels:
    get:
      description: 'Returns the list of distinct pool labels visible to the org, ordered
        by most recent agent check-in or by trigram similarity to a search term.


        Required scopes: `projects:read`.'
      operationId: listPoolLabels
      parameters:
      - description: Filter pool labels by name. It is recommended to use orderBy=rank
          when this is set, so you get the most relevant results first.
        in: query
        name: name
        schema:
          maxLength: 256
          type: string
      - in: query
        name: orderBy
        schema:
          default: timestamp
          enum:
          - timestamp
          - rank
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listPoolLabelsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - agents
      x-audience: public
  /projects:
    get:
      description: 'Returns the list of projects.


        Required scopes: `projects:read`.'
      operationId: listProjects
      parameters:
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listProjectsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - projects
      x-audience: public
    post:
      description: 'Adds a project.


        Required scopes: `projects:write`.'
      operationId: createProject
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createProjectInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/project'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - projects
      x-audience: public
  /projects/{projectID}:
    get:
      description: 'Returns a specific project.


        Required scopes: `projects:read`.'
      operationId: getProject
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/project'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - projects
      x-audience: public
    patch:
      description: 'Updates the project.


        Required scopes: `projects:write`.'
      operationId: updateProject
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateProjectInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/project'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - projects
      x-audience: public
    delete:
      description: 'Archives a project.


        Required scopes: `projects:write`.'
      operationId: archiveProject
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - projects
      x-audience: public
  /projects/{projectID}/assets:
    get:
      description: 'Returns the list of assets at their latest revision


        Required scopes: `assets:read`.'
      operationId: listAssets
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: query
        name: archived
        schema:
          type: boolean
      - description: Filter assets by name
        in: query
        name: name
        schema:
          type: string
      - description: Filter assets by name or description
        in: query
        name: text
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAssetsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:read
      - APIKey: []
      tags:
      - assets
      x-audience: public
    post:
      description: 'Creates a new asset for a project.


        Required scopes: `assets:write`.'
      operationId: createAsset
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createAssetInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asset'
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:write
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/assets/{assetID}:
    get:
      description: 'Returns the latest revision of a specific asset.


        Required scopes: `assets:read`.'
      operationId: getAsset
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asset'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:read
      - APIKey: []
      tags:
      - assets
      x-audience: public
    patch:
      description: 'Updates the name and/or description of an asset across all revisions.


        Required scopes: `assets:write`.'
      operationId: updateAsset
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateAssetInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asset'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:write
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/assets/{assetID}/archive:
    post:
      description: 'Archives an asset.


        Required scopes: `assets:write`.'
      operationId: archiveAsset
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      responses:
        '204':
          description: No Content
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:write
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/assets/{assetID}/builds:
    get:
      description: 'Lists the builds referencing a given asset.


        Required scopes: `assets:read`.'
      operationId: listBuildsForAsset
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAssetBuildsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:read
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/assets/{assetID}/restore:
    post:
      description: 'Restores an archived asset.


        Required scopes: `assets:write`.'
      operationId: restoreAsset
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      responses:
        '204':
          description: No Content
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:write
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/assets/{assetID}/revisions:
    get:
      description: 'Returns all the revisions of a specific asset.


        Required scopes: `assets:read`.'
      operationId: listAssetRevisions
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAssetRevisionsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:read
      - APIKey: []
      tags:
      - assets
      x-audience: public
    post:
      description: 'Creates a new asset revision.


        Required scopes: `assets:write`.'
      operationId: reviseAsset
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/reviseAssetInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asset'
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:write
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/assets/{assetID}/revisions/{assetRevision}:
    get:
      description: 'Returns a specified revision of an asset.


        Required scopes: `assets:read`.'
      operationId: getAssetRevision
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      - in: path
        name: assetRevision
        required: true
        schema:
          $ref: '#/components/schemas/assetRevision'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/asset'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:read
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/assets/{assetID}/revisions/{assetRevision}/builds:
    get:
      description: 'Lists the builds referencing a given asset revision.


        Required scopes: `assets:read`.'
      operationId: listBuildsForAssetRevision
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: assetID
        required: true
        schema:
          $ref: '#/components/schemas/assetID'
      - in: path
        name: assetRevision
        required: true
        schema:
          $ref: '#/components/schemas/assetRevision'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAssetBuildsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:read
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/batches:
    get:
      description: 'List the batches.


        Required scopes: `batches:read`.'
      operationId: listBatches
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter based on branch_id, build_id, system_id, created_at, status,
          metrics_status, batch_id, runner_type, blueprint, blueprint_version. blueprint_version
          may only be used alongside blueprint.
        example: branch_id = "71b96a67-9990-426b-993e-0f3d9c6bbe48" AND created_at
          > "2024-01-01T00:00:00Z"
        in: query
        name: search
        schema:
          type: string
      - description: Filter batches by a text string on batch name and build version
        in: query
        name: text
        schema:
          type: string
      - description: Filter batches to those with (true) or without (false) at least
          one completed log analysis. Omit to return all batches.
        in: query
        name: hasLogAnalysis
        schema:
          type: boolean
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBatchesOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
    post:
      description: 'Adds a batch.  ID should be omitted and will be returned in the
        response.


        Required scopes: `batches:write`.'
      operationId: CreateBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/batchInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batch'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/insufficientQuota'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/-/jobs:
    get:
      description: 'List jobs across all batches in a project


        Required scopes: `batches:read`.'
      operationId: listAllJobs
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter based on attributes metrics_build_name and metrics_build_version
        example: metrics_build_name IN ("hello world") AND metrics_build_version IN
          ("1.0", "1.1")
        in: query
        name: search
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listAllJobsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}:
    get:
      description: 'Returns a batch.


        Required scopes: `batches:read`.'
      operationId: getBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batch'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
    patch:
      description: 'Updates the batch.


        Required scopes: `batches:write`.'
      operationId: updateBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateBatchInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batch'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/:cancel:
    post:
      description: 'Cancels a batch.


        Required scopes: `batches:write`.'
      operationId: cancelBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      responses:
        '200':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/close:
    post:
      description: 'Closes a light batch, marking batch metrics tasks as pending.


        Required scopes: `batches:write`.'
      operationId: closeBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      responses:
        '204':
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - light batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/compare/{otherBatchID}:
    get:
      description: 'Get a summary describing how individual tests have changed between
        the two given batches. A warning or a blocking failure is considered failing
        from the point of view of filters and ordering.


        Required scopes: `batches:read`.'
      operationId: compareBatches
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - description: the batch to compare to
        in: path
        name: otherBatchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - description: filter tests by their status
        in: query
        name: status
        schema:
          $ref: '#/components/schemas/compareBatchesStatusFilter'
      - description: filter tests by their name
        in: query
        name: search
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/compareBatchesOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/errors:
    get:
      description: 'Returns the errors associated with a given batch ID


        Required scopes: `batches:read`.'
      operationId: listBatchErrors
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - $ref: '#/components/parameters/runCounterQuery'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBatchErrorsOutput'
          description: OK
        '204':
          description: No errors found for batch
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      - errors
      x-audience: public
  /projects/{projectID}/batches/{batchID}/jobs:
    get:
      description: 'List the jobs in the given batch.


        Required scopes: `batches:read`.'
      operationId: listJobs
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - description: Filter jobs by status
        in: query
        name: status
        schema:
          $ref: '#/components/schemas/jobStatus'
      - description: Filter jobs by their conflated status
        explode: false
        in: query
        name: conflatedStatus
        schema:
          items:
            $ref: '#/components/schemas/conflatedJobStatus'
          type: array
      - description: Filter experiences (in job) by name
        in: query
        name: name
        schema:
          type: string
      - description: Filter experiences (in job) by a text string on name and description
        in: query
        name: text
        schema:
          type: string
      - description: Filter jobs by the tag id(s) attached to the experience
        explode: false
        in: query
        name: experienceTagIDs
        schema:
          items:
            format: uuid
            type: string
          type: array
      - description: Filter jobs to those with (true) or without (false) a completed
          log analysis. Omit to return all jobs.
        in: query
        name: hasLogAnalysis
        schema:
          type: boolean
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listJobsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
    post:
      description: 'Creates a job within a light batch. The batch must be of type
        LIGHT. Either a name (to get-or-create an experience) or an experienceID must
        be provided.


        Required scopes: `batches:write`.'
      operationId: createJobForBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createJobForBatchInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/job'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - light batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/jobs/{jobID}:
    get:
      description: 'Retrieve the given job.


        Required scopes: `batches:read`.'
      operationId: getJob
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: jobID
        required: true
        schema:
          $ref: '#/components/schemas/jobID'
      - $ref: '#/components/parameters/runCounterQuery'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/job'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
    patch:
      description: 'Updates the job.


        Required scopes: `batches:write`.'
      operationId: updateJob
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: jobID
        required: true
        schema:
          $ref: '#/components/schemas/jobID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateJobInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/job'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/jobs/{jobID}/close:
    post:
      description: 'Closes a job in a light batch, marking it as succeeded or errored.


        Required scopes: `batches:write`.'
      operationId: closeJob
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: jobID
        required: true
        schema:
          $ref: '#/components/schemas/jobID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/closeJobInput'
      responses:
        '204':
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - light batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/jobs/{jobID}/logs:
    get:
      description: 'List the logs associated with a given job


        Required scopes: `batches:read`.'
      operationId: listJobLogsForJob
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: jobID
        required: true
        schema:
          $ref: '#/components/schemas/jobID'
      - in: query
        name: type
        schema:
          items:
            $ref: '#/components/schemas/logType'
          type: array
      - description: Filter logs by name
        in: query
        name: name
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/runCounterQuery'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listJobLogsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
    post:
      description: 'Creates a log entry for a job and returns a presigned S3 upload
        URL. The batch must be of type LIGHT and the job must be in EXPERIENCE_RUNNING
        status. When logType is omitted, it is inferred from the file name.


        Required scopes: `batches:write`.'
      operationId: createJobLog
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: jobID
        required: true
        schema:
          $ref: '#/components/schemas/jobID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createJobLogInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/createJobLogOutput'
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - light batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/jobs/{jobID}/logs/{logID}:
    get:
      description: 'Get an individual log file


        Required scopes: `batches:read`.'
      operationId: getJobLog
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: jobID
        required: true
        schema:
          $ref: '#/components/schemas/jobID'
      - in: path
        name: logID
        required: true
        schema:
          $ref: '#/components/schemas/logID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/jobLog'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/jobs/{jobID}/runs:
    get:
      description: 'List the runs this job actually reached, oldest first, for labelling
        a run

        selector. metricsStatus is absent for runs that finished before per-run

        results were recorded; such a run has no known result and must not be shown

        as passing.


        Required scopes: `batches:read`.'
      operationId: listJobRuns
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: jobID
        required: true
        schema:
          $ref: '#/components/schemas/jobID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listJobRunsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/logs:
    get:
      description: 'List the logs associated with a given batch


        Required scopes: `batches:read`.'
      operationId: listBatchLogsForBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBatchLogsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/logs/{logID}:
    get:
      description: 'Get an individual log file


        Required scopes: `batches:read`.'
      operationId: getBatchLog
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      - in: path
        name: logID
        required: true
        schema:
          $ref: '#/components/schemas/logID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batchLog'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/rerun:
    post:
      description: 'Rerun a batch


        Required scopes: `batches:write`.'
      operationId: rerunBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/rerunBatchInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/rerunBatchOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/retryableConflict'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/runs:
    get:
      description: 'List the runs this batch actually reached, oldest first.


        Required scopes: `batches:read`.'
      operationId: listBatchRuns
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBatchRunsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/{batchID}/suggestions:
    get:
      description: 'Returns a list of suggested batches to A/B compare against


        Required scopes: `batches:read`.'
      operationId: getBatchSuggestions
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: batchID
        required: true
        schema:
          $ref: '#/components/schemas/batchID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batchSuggestionsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/batches/light:
    post:
      description: 'Creates a light batch with no jobs, intended for externally-run
        batches.


        Required scopes: `batches:write`.'
      operationId: CreateLightBatch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/lightBatchInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batch'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/insufficientQuota'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - light batches
      x-audience: public
  /projects/{projectID}/batches/lookup/name/{friendlyName}/:
    get:
      description: 'Looks up a batch by friendly name. Returns the most recent batch
        with the given name.


        Required scopes: `batches:read`.'
      operationId: lookupLatestBatchByName
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: friendlyName
        required: true
        schema:
          $ref: '#/components/schemas/friendlyName'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batchID'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/branches:
    get:
      description: 'Returns the list of branches for a project.


        Required scopes: `projects:read`.'
      operationId: listBranchesForProject
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter branches by name. It is recommended to use orderBy=rank
          with this so the closest matches surface first. When orderBy=rank is set
          without a name, the 'main' branch is bubbled to the top.
        in: query
        name: name
        schema:
          type: string
      - description: Filter branches by branchType
        in: query
        name: branchType
        schema:
          $ref: '#/components/schemas/branchType'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - in: query
        name: orderBy
        schema:
          default: id
          enum:
          - id
          - timestamp
          - rank
          - activity
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBranchesOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - projects
      x-audience: public
    post:
      description: 'Adds a branch for a project.


        Required scopes: `projects:write`.'
      operationId: createBranchForProject
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createBranchInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/branch'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - projects
      x-audience: public
  /projects/{projectID}/branches/{branchID}:
    get:
      description: 'Returns a specific branch for a project.


        Required scopes: `projects:read`.'
      operationId: getBranchForProject
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: branchID
        required: true
        schema:
          $ref: '#/components/schemas/branchID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/branch'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:read
      - APIKey: []
      tags:
      - projects
      x-audience: public
    delete:
      description: 'Deletes a branch for a project.


        Required scopes: `projects:write`.'
      operationId: deleteBranchForProject
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: branchID
        required: true
        schema:
          $ref: '#/components/schemas/branchID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - projects:write
      - APIKey: []
      tags:
      - projects
      x-audience: public
  /projects/{projectID}/branches/{branchID}/builds:
    get:
      description: 'Returns the list of builds for a branch.


        Required scopes: `builds:read`.'
      operationId: listBuildsForBranches
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - explode: false
        in: path
        name: branchID
        required: true
        schema:
          items:
            $ref: '#/components/schemas/branchID'
          minItems: 1
          type: array
        style: simple
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBuildsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - builds
      x-audience: public
    post:
      description: 'Adds a build.


        Required scopes: `builds:write`.'
      operationId: createBuildForBranch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: branchID
        required: true
        schema:
          $ref: '#/components/schemas/branchID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createBuildForBranchInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/build'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:write
      - APIKey: []
      tags:
      - builds
      x-audience: public
  /projects/{projectID}/branches/{branchID}/builds/{buildID}:
    get:
      description: 'Returns a specific build for a branch.


        Required scopes: `builds:read`.'
      operationId: getBuildForBranch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: branchID
        required: true
        schema:
          $ref: '#/components/schemas/branchID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/build'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - builds
      x-audience: public
    delete:
      description: 'Delete a build.


        Required scopes: `builds:write`.'
      operationId: deleteBuildForBranch
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: branchID
        required: true
        schema:
          $ref: '#/components/schemas/branchID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:write
      - APIKey: []
      tags:
      - builds
      x-audience: public
  /projects/{projectID}/builds:
    get:
      description: 'Returns the list of builds.


        Required scopes: `builds:read`.'
      operationId: listBuilds
      parameters:
      - description: A search query. Supports searching by branch_id, system_id
        example: branch_id = "71b96a67-9990-426b-993e-0f3d9c6bbe48"
        in: query
        name: search
        schema:
          type: string
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter builds by their name or description
        in: query
        name: text
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBuildsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - builds
      x-audience: public
  /projects/{projectID}/builds/{buildID}:
    get:
      description: 'Returns a specific build.


        Required scopes: `builds:read`.'
      operationId: getBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/build'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - builds
      x-audience: public
    patch:
      description: 'Updates the build.


        Required scopes: `builds:write`.'
      operationId: updateBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateBuildInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/build'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:write
      - APIKey: []
      tags:
      - builds
      x-audience: public
  /projects/{projectID}/builds/{buildID}/assets:
    get:
      description: 'Lists the assets attached to a build.


        Required scopes: `assets:read`.'
      operationId: listAssetsForBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBuildAssetsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:read
      - APIKey: []
      tags:
      - assets
      x-audience: public
    post:
      description: 'Add one or more assets to a build.


        Required scopes: `assets:write`.'
      operationId: addAssetsToBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/addAssetsToBuildInput'
      responses:
        '201':
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/conflict'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:write
      - APIKey: []
      tags:
      - assets
      x-audience: public
    delete:
      description: 'Remove one or more assets from a build.


        Required scopes: `assets:write`.'
      operationId: removeAssetsFromBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/removeAssetsFromBuildInput'
      responses:
        '204':
          description: No Content
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - assets:write
      - APIKey: []
      tags:
      - assets
      x-audience: public
  /projects/{projectID}/experienceTags:
    get:
      description: 'Returns a list of all experience tags.


        Required scopes: `experienceTags:read`.'
      operationId: listExperienceTags
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter experience tags by name. It is recommended to use orderBy=rank,
          so you get the most relevant results first.
        in: query
        name: name
        schema:
          type: string
      - in: query
        name: orderBy
        schema:
          default: id
          enum:
          - id
          - timestamp
          - rank
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listExperienceTagsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:read
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
    post:
      description: 'Adds an experience tag.


        Required scopes: `experienceTags:write`.'
      operationId: createExperienceTag
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createExperienceTagInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/experienceTag'
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:write
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
  /projects/{projectID}/experienceTags/{experienceTagID}:
    get:
      description: 'Returns a specific experience tag.


        Required scopes: `experienceTags:read`.'
      operationId: getExperienceTag
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceTagID
        required: true
        schema:
          $ref: '#/components/schemas/experienceTagID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/experienceTag'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:read
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
    patch:
      description: 'Updates the experience tag.  Experience membership cannot be changed
        with this method.


        Required scopes: `experienceTags:write`.'
      operationId: updateExperienceTag
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceTagID
        required: true
        schema:
          $ref: '#/components/schemas/experienceTagID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateExperienceTagInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/experienceTag'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:write
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
    delete:
      description: 'Deletes an experience tag.


        Required scopes: `experienceTags:write`.'
      operationId: deleteExperienceTag
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceTagID
        required: true
        schema:
          $ref: '#/components/schemas/experienceTagID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:write
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
  /projects/{projectID}/experienceTags/{experienceTagID}/experiences:
    get:
      description: 'Returns a list of experiences with the given experience tag.


        Required scopes: `experienceTags:read`.'
      operationId: listExperiencesWithExperienceTag
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceTagID
        required: true
        schema:
          $ref: '#/components/schemas/experienceTagID'
      - description: Filter by archived status.
        in: query
        name: archived
        schema:
          type: boolean
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listExperiencesOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:read
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
  /projects/{projectID}/experienceTags/{experienceTagID}/experiences/{experienceID}:
    post:
      description: 'Adds the given experience tag to the given experience.


        Required scopes: `experienceTags:write`.'
      operationId: addExperienceTagToExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceTagID
        required: true
        schema:
          $ref: '#/components/schemas/experienceTagID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      responses:
        '201':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:write
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
    delete:
      description: 'Removes the given experience tag from the given experience.


        Required scopes: `experienceTags:write`.'
      operationId: removeExperienceTagFromExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceTagID
        required: true
        schema:
          $ref: '#/components/schemas/experienceTagID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:write
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
  /projects/{projectID}/experienceTags/addExperiences:
    post:
      description: 'Registers the given experiences as applicable for the experience
        tags


        Required scopes: `experienceTags:write`.'
      operationId: addTagsToExperiences
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/addTagsToExperiencesInput'
      responses:
        '201':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experienceTags:write
      - APIKey: []
      tags:
      - experience tags
      x-audience: public
  /projects/{projectID}/experiences:
    get:
      description: 'Returns the list of experiences.


        Required scopes: `experiences:read`.'
      operationId: listExperiences
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter experiences by name
        in: query
        name: name
        schema:
          type: string
      - description: Filter experiences by a text string on experience name, experience
          description, or experience tag name
        in: query
        name: text
        schema:
          type: string
      - description: A search query. Supports searching by tag_id, test_suite_id,
          archived, profile, and system_id
        example: tag_id IN ("71b96a67-9990-426b-993e-0f3d9c6bbe48")
        in: query
        name: search
        schema:
          type: string
      - in: query
        name: archived
        schema:
          default: false
          type: boolean
      - description: If true, includes customFields in the response. Defaults to false
          to avoid performance issues when listing many experiences.
        in: query
        name: includeCustomFields
        schema:
          default: false
          type: boolean
      - $ref: '#/components/parameters/pageSizeUnbounded'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listExperiencesOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:read
      - APIKey: []
      tags:
      - experiences
      x-audience: public
    post:
      description: 'Adds an experience.


        Required scopes: `experiences:write`.'
      operationId: createExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createExperienceInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/experience'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:write
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/experiences/{experienceID}:
    get:
      description: 'Returns a specific experience.


        Required scopes: `experiences:read`.'
      operationId: getExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/experience'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:read
      - APIKey: []
      tags:
      - experiences
      x-audience: public
    patch:
      description: 'Updates the experience. When updating environment variables or
        custom fields, the entire array is replaced.


        Required scopes: `experiences:write`.'
      operationId: updateExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateExperienceInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/experience'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:write
      - APIKey: []
      tags:
      - experiences
      x-audience: public
    delete:
      description: 'Archives an experience.


        Required scopes: `experiences:write`.'
      operationId: archiveExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:write
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/experiences/{experienceID}/debug:
    post:
      description: 'Reruns an experience in debug mode.


        Required scopes: `batches:write`.'
      operationId: debugExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/debugExperienceInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/debugExperienceOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/experiences/{experienceID}/experienceTags:
    get:
      description: 'Returns a list of experience tags associated with a given experience.


        Required scopes: `experiences:read`.'
      operationId: listExperienceTagsForExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listExperienceTagsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:read
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/experiences/{experienceID}/restore:
    post:
      description: 'Restores an experience.


        Required scopes: `experiences:write`.'
      operationId: restoreExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:write
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/experiences/{experienceID}/systems:
    get:
      description: 'Returns the systems for a given experience


        Required scopes: `experiences:read`.'
      operationId: getSystemsForExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listSystemsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:read
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/experiences/archive:
    post:
      description: 'Archives multiple experiences in bulk.


        Required scopes: `experiences:write`.'
      operationId: bulkArchiveExperiences
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/bulkArchiveExperiencesInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: integer
          description: Number of experiences successfully archived
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:write
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/experiences/customfields:
    get:
      description: 'Returns all custom field definitions with unique values for the
        project. Useful for populating filter dropdowns.


        Required scopes: `experiences:read`.'
      operationId: listExperienceCustomFields
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: List of custom field types to filter by.
        explode: false
        in: query
        name: type
        schema:
          items:
            $ref: '#/components/schemas/customFieldValueType'
          type: array
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listExperienceCustomFieldsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:read
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/logs/{logID}:
    get:
      description: 'Get an individual log file by ID without requiring batch or job
        context


        Required scopes: `batches:read`.'
      operationId: getLogByID
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: logID
        required: true
        schema:
          $ref: '#/components/schemas/logID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/jobLog'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/metricsBuilds:
    get:
      description: 'Returns the list of metrics builds.


        Required scopes: `builds:read`.'
      operationId: listMetricsBuilds
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: A search query. Supports searching by system_id
        example: system_id = "71b96a67-9990-426b-993e-0f3d9c6bbe48"
        in: query
        name: systemID
        schema:
          format: uuid
          type: string
      - description: Free text filter on the metrics build name.
        in: query
        name: text
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listMetricsBuildOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - metricsBuilds
      x-audience: public
    post:
      description: 'Adds a metrics build.


        Required scopes: `builds:write`.'
      operationId: createMetricsBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createMetricsBuildInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/metricsBuild'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:write
      - APIKey: []
      tags:
      - metricsBuilds
      x-audience: public
  /projects/{projectID}/metricsBuilds/{metricsBuildID}:
    get:
      description: 'Returns a specific metrics build.


        Required scopes: `builds:read`.'
      operationId: getMetricsBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: metricsBuildID
        required: true
        schema:
          $ref: '#/components/schemas/metricsBuildID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/metricsBuild'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - metricsBuilds
      x-audience: public
  /projects/{projectID}/metricsBuilds/{metricsBuildID}/systems:
    get:
      description: 'Returns the systems for a given metrics build


        Required scopes: `builds:read`.'
      operationId: getSystemsForMetricsBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: metricsBuildID
        required: true
        schema:
          $ref: '#/components/schemas/metricsBuildID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listSystemsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - metricsBuilds
      x-audience: public
  /projects/{projectID}/profiles:
    get:
      description: 'Returns the list of service profiles.


        Required scopes: `experiences:read`.'
      operationId: listServiceProfiles
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  type: string
                type: array
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:read
      - APIKey: []
      tags:
      - experiences
      x-audience: public
  /projects/{projectID}/suites:
    get:
      description: 'Returns the list of test suites at their latest revision


        Required scopes: `batches:read`.'
      operationId: listTestSuites
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Only return test suites that contain the given experience id(s)
        explode: false
        in: query
        name: experienceIDs
        schema:
          items:
            $ref: '#/components/schemas/experienceID'
          minItems: 1
          type: array
        style: form
      - description: Only return test suites that contain the given system id
        in: query
        name: systemID
        schema:
          format: uuid
          type: string
      - in: query
        name: archived
        schema:
          type: boolean
      - description: Filter test suites by name
        in: query
        name: name
        schema:
          type: string
      - description: Filter test suites by a text string on name and description
        in: query
        name: text
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listTestSuiteOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
    post:
      description: 'Adds a test suite for a project.


        Required scopes: `batches:write`.'
      operationId: createTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createTestSuiteInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/testSuite'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}:
    get:
      description: 'Returns a specific test suite''s latest revision.


        Required scopes: `batches:read`.'
      operationId: getTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/testSuite'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
    patch:
      description: 'Revise a test suite, generating a new revision. Supply a false
        value for ad-hoc to convert an existing ad hoc test suite to a full test suite.


        Required scopes: `batches:write`.'
      operationId: reviseTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/reviseTestSuiteInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/testSuite'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
    delete:
      description: 'Archives a test suite.


        Required scopes: `batches:write`.'
      operationId: archiveTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}/addExperiences:
    patch:
      description: 'Add experiences to a test suite. This will generate a new test
        suite revision.


        Required scopes: `batches:write`.'
      operationId: addExperiencesToTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/selectExperiencesInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/testSuite'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}/batches:
    get:
      description: 'List the batches for a test suite (all revisions).


        Required scopes: `batches:read`.'
      operationId: listBatchesForTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBatchesOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
    post:
      description: 'Creates a batch for that test suite


        Required scopes: `batches:write`.'
      operationId: CreateBatchForTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/testSuiteBatchInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batch'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/insufficientQuota'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}/removeExperiences:
    patch:
      description: 'Remove experiences from a test suite. This will generate a new
        test suite revision.


        Required scopes: `batches:write`.'
      operationId: removeExperiencesFromTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/selectExperiencesInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/testSuite'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}/restore:
    post:
      description: 'Restores a test suite.


        Required scopes: `batches:write`.'
      operationId: restoreTestSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}/revisions:
    get:
      description: 'Returns all the revisions of a specific test suite.


        Required scopes: `batches:read`.'
      operationId: listTestSuiteRevisions
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listTestSuiteRevisionsOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}/revisions/{revision}:
    get:
      description: 'Returns a specified revision of a test suite.


        Required scopes: `batches:read`.'
      operationId: getTestSuiteRevision
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      - in: path
        name: revision
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteRevision'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/testSuite'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/suites/{testSuiteID}/revisions/{revision}/batches:
    get:
      description: 'List the batches for a test suite revision


        Required scopes: `batches:read`.'
      operationId: listBatchesForTestSuiteRevision
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      - in: path
        name: revision
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteRevision'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBatchesOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
      - APIKey: []
      tags:
      - batches
      x-audience: public
    post:
      description: 'Creates a batch for that test suite revision


        Required scopes: `batches:write`.'
      operationId: CreateBatchForTestSuiteRevision
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      - in: path
        name: revision
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteRevision'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/testSuiteBatchInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/batch'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/insufficientQuota'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - batches
      x-audience: public
  /projects/{projectID}/suites/addExperiences:
    post:
      description: 'Add experiences to test suites. This will generate a new test
        suite revision.


        Required scopes: `batches:write`.'
      operationId: addTestSuitesToExperiences
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/addSuitesToExperiencesInput'
      responses:
        '201':
          description: Created
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:write
      - APIKey: []
      tags:
      - test_suites
      x-audience: public
  /projects/{projectID}/systems:
    get:
      description: 'Returns the list of systems.


        Required scopes: `systems:read`.'
      operationId: listSystems
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter systems by name
        in: query
        name: name
        schema:
          type: string
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listSystemsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:read
      - APIKey: []
      tags:
      - systems
      x-audience: public
    post:
      description: 'Adds a system.


        Required scopes: `systems:write`.'
      operationId: createSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createSystemInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/system'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
  /projects/{projectID}/systems/{systemID}:
    get:
      description: 'Returns a specific system.


        Required scopes: `systems:read`.'
      operationId: getSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/system'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:read
      - APIKey: []
      tags:
      - systems
      x-audience: public
    patch:
      description: 'Updates the system.


        Required scopes: `systems:write`.'
      operationId: updateSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateSystemInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/system'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
    delete:
      description: 'Archives a system.


        Required scopes: `systems:write`.'
      operationId: archiveSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
  /projects/{projectID}/systems/{systemID}/builds:
    get:
      description: 'Returns the list of builds for a system.


        Required scopes: `builds:read`.'
      operationId: listBuildsForSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listBuildsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - builds
      x-audience: public
    post:
      description: 'Adds a build.


        Required scopes: `builds:write`.'
      operationId: createBuildForSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createBuildForSystemInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/build'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:write
      - APIKey: []
      tags:
      - builds
      x-audience: public
  /projects/{projectID}/systems/{systemID}/builds/{buildID}:
    get:
      description: 'Returns a specific build for a system.


        Required scopes: `builds:read`.'
      operationId: getBuildForSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      - in: path
        name: buildID
        required: true
        schema:
          $ref: '#/components/schemas/buildID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/build'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - builds:read
      - APIKey: []
      tags:
      - builds
      x-audience: public
  /projects/{projectID}/systems/{systemID}/experiences:
    get:
      description: 'Returns a list of all experiences applicable to the system.


        Required scopes: `systems:read`.'
      operationId: listExperiencesForSystem
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      - description: Filter experiences by archived status
        in: query
        name: archived
        schema:
          type: boolean
      - description: If true, includes customFields in the response. Defaults to false
          to avoid performance issues when listing many experiences.
        in: query
        name: includeCustomFields
        schema:
          default: false
          type: boolean
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listExperiencesOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:read
      - APIKey: []
      tags:
      - systems
      x-audience: public
  /projects/{projectID}/systems/{systemID}/experiences/{experienceID}:
    post:
      description: 'Registers the given experience as applicable for the system


        Required scopes: `systems:write`.'
      operationId: addSystemToExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      responses:
        '201':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
    delete:
      description: 'Deregisters the given experience as applicable for the system


        Required scopes: `systems:write`.'
      operationId: removeSystemFromExperience
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      - in: path
        name: experienceID
        required: true
        schema:
          $ref: '#/components/schemas/experienceID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
  /projects/{projectID}/systems/{systemID}/metricsBuilds/{metricsBuildID}:
    post:
      description: 'Registers the given metrics build as applicable for the system


        Required scopes: `systems:write`.'
      operationId: addSystemToMetricsBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      - in: path
        name: metricsBuildID
        required: true
        schema:
          $ref: '#/components/schemas/metricsBuildID'
      responses:
        '201':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
    delete:
      description: 'Deregisters the given metrics build as applicable for the system


        Required scopes: `systems:write`.'
      operationId: removeSystemFromMetricsBuild
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: systemID
        required: true
        schema:
          $ref: '#/components/schemas/systemID'
      - in: path
        name: metricsBuildID
        required: true
        schema:
          $ref: '#/components/schemas/metricsBuildID'
      responses:
        '204':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
  /projects/{projectID}/systems/addExperiences:
    post:
      description: 'Registers the given experiences as applicable for the systems


        Required scopes: `systems:write`.'
      operationId: addSystemsToExperiences
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/mutateSystemsToExperienceInput'
      responses:
        '201':
          description: Created
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
  /projects/{projectID}/systems/removeExperiences:
    post:
      description: 'Removes the given experiences from association with the systems


        Required scopes: `systems:write`.'
      operationId: removeSystemsFromExperiences
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/mutateSystemsToExperienceInput'
      responses:
        '201':
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - systems:write
      - APIKey: []
      tags:
      - systems
      x-audience: public
  /projects/{projectID}/workflows:
    get:
      description: 'Lists the workflows for a project.


        Required scopes: `workflows:read`.'
      operationId: listWorkflows
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - description: Filter branches by name
        in: query
        name: name
        schema:
          type: string
      - description: Filter test suites by a text string on name and description
        in: query
        name: text
        schema:
          type: string
      - in: query
        name: archived
        schema:
          type: boolean
      - description: Filter workflows by test suite ID
        in: query
        name: testSuiteID
        schema:
          $ref: '#/components/schemas/testSuiteID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listWorkflowsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:read
      - APIKey: []
      tags:
      - workflows
      x-audience: public
    post:
      description: 'Creates a new workflow.


        Required scopes: `workflows:write`.'
      operationId: createWorkflow
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createWorkflowInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workflow'
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '409':
          $ref: '#/components/responses/alreadyExists'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:write
      - APIKey: []
      tags:
      - workflows
      x-audience: public
  /projects/{projectID}/workflows/{workflowID}:
    get:
      description: 'Gets a workflow by ID.


        Required scopes: `workflows:read`.'
      operationId: getWorkflow
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workflow'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:read
      - APIKey: []
      tags:
      - workflows
      x-audience: public
    patch:
      description: 'Updates a workflow.


        Required scopes: `workflows:write`.'
      operationId: updateWorkflow
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateWorkflowInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workflow'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:write
      - APIKey: []
      tags:
      - workflows
      x-audience: public
  /projects/{projectID}/workflows/{workflowID}/runs:
    get:
      description: 'Lists the runs for a workflow.


        Required scopes: `workflows:read`.'
      operationId: listWorkflowRuns
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      - $ref: '#/components/parameters/pageSize'
      - $ref: '#/components/parameters/pageToken'
      - $ref: '#/components/parameters/orderBy'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listWorkflowRunsOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:read
      - APIKey: []
      tags:
      - workflows
      x-audience: public
    post:
      description: 'Creates a new workflow run.


        Required scopes: `workflows:write`.'
      operationId: createWorkflowRun
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createWorkflowRunInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workflowRun'
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:write
      - APIKey: []
      tags:
      - workflows
      x-audience: public
  /projects/{projectID}/workflows/{workflowID}/runs/{workflowRunID}:
    get:
      description: 'Gets a workflow run by ID.


        Required scopes: `workflows:read`.'
      operationId: getWorkflowRun
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      - in: path
        name: workflowRunID
        required: true
        schema:
          $ref: '#/components/schemas/workflowRunID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workflowRun'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:read
      - APIKey: []
      tags:
      - workflows
      x-audience: public
  /projects/{projectID}/workflows/{workflowID}/test_suites:
    get:
      description: 'Lists the suites for a workflow.


        Required scopes: `workflows:read`.'
      operationId: listWorkflowSuites
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/listWorkflowSuitesOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:read
      - APIKey: []
      tags:
      - workflows
      x-audience: public
    post:
      description: 'Adds test suites to a workflow.


        Required scopes: `workflows:write`.'
      operationId: createWorkflowSuites
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/createWorkflowSuitesInput'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/createWorkflowSuitesOutput'
          description: Created
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '409':
          $ref: '#/components/responses/conflict'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:write
      - APIKey: []
      tags:
      - workflows
      x-audience: public
    patch:
      description: 'Updates workflow test suites.


        Required scopes: `workflows:write`.'
      operationId: updateWorkflowSuites
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/updateWorkflowSuitesInput'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/updateWorkflowSuitesOutput'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:write
      - APIKey: []
      tags:
      - workflows
      x-audience: public
    delete:
      description: 'Removes test suites from a workflow.


        Required scopes: `workflows:write`.'
      operationId: deleteWorkflowSuites
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/deleteWorkflowSuitesInput'
      responses:
        '204':
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:write
      - APIKey: []
      tags:
      - workflows
      x-audience: public
  /projects/{projectID}/workflows/{workflowID}/test_suites/{testSuiteID}:
    get:
      description: 'Gets a specific workflow test suite.


        Required scopes: `workflows:read`.'
      operationId: getWorkflowSuite
      parameters:
      - in: path
        name: projectID
        required: true
        schema:
          $ref: '#/components/schemas/projectID'
      - in: path
        name: workflowID
        required: true
        schema:
          $ref: '#/components/schemas/workflowID'
      - in: path
        name: testSuiteID
        required: true
        schema:
          $ref: '#/components/schemas/testSuiteID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/workflowSuiteOutput'
          description: OK
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '404':
          $ref: '#/components/responses/notFound'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - workflows:read
      - APIKey: []
      tags:
      - workflows
      x-audience: public
  /quota:
    get:
      description: 'Get current quota usage and limits


        Required scopes: `batches:read`, `reports:read`.'
      operationId: getQuota
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/getQuotaOutput'
          description: quota
        '401':
          $ref: '#/components/responses/unauthenticated'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - batches:read
        - reports:read
      - APIKey: []
      tags:
      - quota
      x-audience: public
  /validateExperienceLocation:
    post:
      description: 'Validates an experience location can be reached by ReSim.


        Required scopes: `experiences:write`.'
      operationId: validateExperienceLocation
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/experienceLocation'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/experienceLocationContents'
          description: OK
        '400':
          $ref: '#/components/responses/badRequest'
        '401':
          $ref: '#/components/responses/unauthenticated'
        '402':
          $ref: '#/components/responses/orgSuspended'
        '403':
          $ref: '#/components/responses/forbidden'
        '429':
          $ref: '#/components/responses/tooManyRequests'
      security:
      - OAuth:
        - experiences:write
      - APIKey: []
      tags:
      - experiences
      x-audience: public
