Label Studio subpackage_projects.subpackage_projects/metrics API

The subpackage_projects.subpackage_projects/metrics API from Label Studio — 1 operation(s) for subpackage_projects.subpackage_projects/metrics.

Operations 2

GET /api/projects/{id}/metricparam/ ✨ Get project metrics configuration #
POST /api/projects/{id}/metricparam/ ✨ Update project metrics configuration #

Work with this as data

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

MCP server

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

https://apis.io/mcp

Tools for apis

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

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/label-studio-subpackage-projects-subpackage-projects-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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

OpenAPI Specification

label-studio-subpackage-projects-subpackage-projects-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference subpackage_actions Subpackage Projects.subpackage Projects/metrics API
  version: 1.0.0
servers:
- url: http://localhost:8000
tags:
- name: subpackage_projects.subpackage_projects/metrics
paths:
  /api/projects/{id}/metricparam/:
    get:
      operationId: get
      summary: ✨ Get project metrics configuration
      description: "<Card href=\"https://humansignal.com/goenterprise\">\n        <img style=\"pointer-events: none; margin-left: 0px; margin-right: 0px;\" src=\"https://docs.humansignal.com/images/badge.svg\" alt=\"Label Studio Enterprise badge\"/>\n        <p style=\"margin-top: 10px; font-size: 14px;\">\n            This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n        </p>\n    </Card>\nGet the current metrics configuration for a project."
      tags:
      - subpackage_projects.subpackage_projects/metrics
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      - name: Authorization
        in: header
        description: 'The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Current metrics configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricParam'
    post:
      operationId: update
      summary: ✨ Update project metrics configuration
      description: "<Card href=\"https://humansignal.com/goenterprise\">\n        <img style=\"pointer-events: none; margin-left: 0px; margin-right: 0px;\" src=\"https://docs.humansignal.com/images/badge.svg\" alt=\"Label Studio Enterprise badge\"/>\n        <p style=\"margin-top: 10px; font-size: 14px;\">\n            This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)\n        </p>\n    </Card>\nUpdate metrics strategy and parameters for a project."
      tags:
      - subpackage_projects.subpackage_projects/metrics
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: integer
      - name: Authorization
        in: header
        description: 'The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>'
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Updated metrics configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricParam'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MetricParamUpdateRequest'
components:
  schemas:
    MetricParamUpdateRequest:
      type: object
      properties:
        additional_params:
          type:
          - object
          - 'null'
          additionalProperties:
            description: Any type
          description: Agreement metric parameters
        agreement_threshold:
          type: integer
        max_additional_annotators_assignable:
          type: integer
        metric_name:
          type: string
          description: Agreement metric
      title: MetricParamUpdateRequest
    MetricParam:
      type: object
      properties:
        agreement_threshold:
          type: string
        allowed:
          type: string
        max_additional_annotators_assignable:
          type:
          - integer
          - 'null'
          description: Maximum number of additional annotators that can be assigned to a low agreement task
        metric_name:
          type:
          - string
          - 'null'
          description: Evaluation metric chosen for this project
        metric_params:
          oneOf:
          - description: Any type
          - type: 'null'
      required:
      - agreement_threshold
      - allowed
      title: MetricParam
  securitySchemes:
    Token:
      type: apiKey
      in: header
      name: Authorization
      description: 'The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example: <br><pre><code class="language-bash">curl https://label-studio-host/api/projects -H "Authorization: Token [your-token]"</code></pre>'