Label Studio · Capability

API Reference — subpackage_sessionPolicy

API Reference — subpackage_sessionPolicy. 2 operations. Lead operation: Retrieve Session Policy. Self-contained Naftiko capability covering one Label Studio business surface.

Run with Naftiko Label Studiosubpackage_sessionPolicy

What You Can Do

GET
Get — Retrieve Session Policy
/v1/api/session-policy
PATCH
Update — Update Session Policy
/v1/api/session-policy

MCP Tools

retrieve-session-policy

Retrieve Session Policy

read-only idempotent
update-session-policy

Update Session Policy

idempotent

Capability Spec

label-studio-subpackage-sessionpolicy.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: API Reference — subpackage_sessionPolicy
  description: 'API Reference — subpackage_sessionPolicy. 2 operations. Lead operation: Retrieve Session Policy. Self-contained
    Naftiko capability covering one Label Studio business surface.'
  tags:
  - Label Studio
  - subpackage_sessionPolicy
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LABEL_STUDIO_API_KEY: LABEL_STUDIO_API_KEY
capability:
  consumes:
  - type: http
    namespace: label-studio-subpackage-sessionpolicy
    baseUri: http://localhost:8000
    description: API Reference — subpackage_sessionPolicy business capability. Self-contained, no shared references.
    resources:
    - name: api-session-policy
      path: /api/session-policy/
      operations:
      - name: get
        method: GET
        description: Retrieve Session Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          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='
          required: true
      - name: update
        method: PATCH
        description: Update Session Policy
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Authorization
          in: header
          type: string
          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='
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.LABEL_STUDIO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: label-studio-subpackage-sessionpolicy-rest
    port: 8080
    description: REST adapter for API Reference — subpackage_sessionPolicy. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/session-policy
      name: api-session-policy
      description: REST surface for api-session-policy.
      operations:
      - method: GET
        name: get
        description: Retrieve Session Policy
        call: label-studio-subpackage-sessionpolicy.get
        with:
          Authorization: rest.Authorization
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: update
        description: Update Session Policy
        call: label-studio-subpackage-sessionpolicy.update
        with:
          Authorization: rest.Authorization
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: label-studio-subpackage-sessionpolicy-mcp
    port: 9090
    transport: http
    description: MCP adapter for API Reference — subpackage_sessionPolicy. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: retrieve-session-policy
      description: Retrieve Session Policy
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: label-studio-subpackage-sessionpolicy.get
      with:
        Authorization: tools.Authorization
      outputParameters:
      - type: object
        mapping: $.
    - name: update-session-policy
      description: Update Session Policy
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: label-studio-subpackage-sessionpolicy.update
      with:
        Authorization: tools.Authorization
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.