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

# Set the workspace's default agent billing plan

> Marks one plan as the workspace default, replacing whichever held the marker before — one marker per workspace, which is why this is a PUT on a singleton rather than a per-plan flag. Changes nothing for already-attached customers; it only decides what apply-default-plan applies. Deleting the marked plan clears the marker with it.



## OpenAPI

````yaml put /v1/agents/default-plan
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/agents/default-plan:
    put:
      tags:
        - Agents
      summary: Set the workspace's default agent billing plan
      description: >-
        Marks one plan as the workspace default, replacing whichever held the
        marker before — one marker per workspace, which is why this is a PUT on
        a singleton rather than a per-plan flag. Changes nothing for
        already-attached customers; it only decides what apply-default-plan
        applies. Deleting the marked plan clears the marker with it.
      operationId: setAgentDefaultPlan
      requestBody:
        description: Which plan holds the default marker
        content:
          application/json:
            schema:
              type: object
              properties:
                plan_id:
                  type: string
                  minLength: 1
                auto_apply:
                  type: boolean
              required:
                - plan_id
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  plan_id:
                    type: string
                  auto_apply:
                    type: boolean
                required:
                  - plan_id
                  - auto_apply
        '404':
          description: Plan not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````