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

# Update Linear route

> Merge-patches one of the organization's Linear routes, turning it on or off or setting the agent profile its tasks run with, and returns the route.

Use this tool when you need to:
- Pause or resume a route without deleting it
- Run the tasks a route starts with a chosen agent profile, or return them to the project's defaults

Examples:
- PATCH /orgs/{orgID}/linear/routes/{routeID} {"enabled": false}
- PATCH /orgs/{orgID}/linear/routes/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21 {"agent_profile_id": null}

Hints:
- orgID is the organization's uuid and routeID the route's route_id from listLinearRoutes. enabled (a boolean) and agent_profile_id (a uuid, or null for the project's defaults) are optional and an omitted field is kept; the schema answers 422 for a routeID or agent_profile_id that is not a uuid, another type, or an unknown field.
- A patch naming no field is the handler's 422 with no domain code, answered before the connection is checked.
- Only enabled routes take issues. The team, Linear project and Aether project are fixed: delete the route and create another to change one. Tasks the route already started are unchanged.
- Refused with 404 not_connected when Linear is not installed, 404 route_not_found for a route the organization's installation does not hold, and 422 agent_profile_not_found for a profile the organization does not hold.
- Use deleteLinearRoute instead to remove the route, and createLinearRoute to route another source or project.
- Owners and admins of the organization in the path, with a session or a platform API key: a member, viewer or billing member is refused with 403 org_role_insufficient before the path or body is validated, a non-member with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed.



## OpenAPI

````yaml api-reference/openapi.json PATCH /orgs/{orgID}/linear/routes/{routeID}
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /orgs/{orgID}/linear/routes/{routeID}:
    patch:
      tags:
        - linear
      summary: Update Linear route
      description: >-
        Merge-patches one of the organization's Linear routes, turning it on or
        off or setting the agent profile its tasks run with, and returns the
        route.


        Use this tool when you need to:

        - Pause or resume a route without deleting it

        - Run the tasks a route starts with a chosen agent profile, or return
        them to the project's defaults


        Examples:

        - PATCH /orgs/{orgID}/linear/routes/{routeID} {"enabled": false}

        - PATCH /orgs/{orgID}/linear/routes/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21
        {"agent_profile_id": null}


        Hints:

        - orgID is the organization's uuid and routeID the route's route_id from
        listLinearRoutes. enabled (a boolean) and agent_profile_id (a uuid, or
        null for the project's defaults) are optional and an omitted field is
        kept; the schema answers 422 for a routeID or agent_profile_id that is
        not a uuid, another type, or an unknown field.

        - A patch naming no field is the handler's 422 with no domain code,
        answered before the connection is checked.

        - Only enabled routes take issues. The team, Linear project and Aether
        project are fixed: delete the route and create another to change one.
        Tasks the route already started are unchanged.

        - Refused with 404 not_connected when Linear is not installed, 404
        route_not_found for a route the organization's installation does not
        hold, and 422 agent_profile_not_found for a profile the organization
        does not hold.

        - Use deleteLinearRoute instead to remove the route, and
        createLinearRoute to route another source or project.

        - Owners and admins of the organization in the path, with a session or a
        platform API key: a member, viewer or billing member is refused with 403
        org_role_insufficient before the path or body is validated, a non-member
        with 403 org_membership_required, an orgID that is not a uuid with 400,
        and an agent host's grant with 403 agent_host_route_not_allowed.
      operationId: updateLinearRoute
      parameters:
        - in: path
          name: orgID
          required: true
          schema:
            format: uuid
            type: string
        - in: path
          name: routeID
          required: true
          schema:
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateLinearRouteInput'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearRoute'
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Not Found
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Unprocessable Entity
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinearErrorResponse'
          description: Internal Server Error
components:
  schemas:
    UpdateLinearRouteInput:
      additionalProperties: false
      properties:
        agent_profile_id:
          format: uuid
          type:
            - string
            - 'null'
        enabled:
          type: boolean
      type: object
    LinearRoute:
      additionalProperties: false
      properties:
        aether_project_id:
          format: uuid
          type: string
        agent_profile_id:
          description: >-
            The agent profile tasks the route starts run with; null for the
            project's defaults.
          format: uuid
          type:
            - string
            - 'null'
        enabled:
          type: boolean
        linear_project_id:
          description: >-
            The Linear project whose issues the route takes; null for every
            issue of the team.
          minLength: 1
          type:
            - string
            - 'null'
        linear_project_name:
          description: The Linear project's name; null for a team-wide route.
          minLength: 1
          type:
            - string
            - 'null'
        linear_team_id:
          minLength: 1
          type: string
        linear_team_key:
          minLength: 1
          type: string
        linear_team_name:
          minLength: 1
          type: string
        route_id:
          format: uuid
          type: string
      required:
        - route_id
        - aether_project_id
        - enabled
        - agent_profile_id
        - linear_team_id
        - linear_team_key
        - linear_team_name
        - linear_project_id
        - linear_project_name
      type: object
    LinearErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - agent_profile_not_found
            - bad_gateway
            - bad_request
            - cli_upgrade_required
            - client_outdated
            - conflict
            - default_actor_not_member
            - forbidden
            - gateway_timeout
            - gone
            - internal_error
            - linear_project_not_found
            - linear_team_not_found
            - method_not_allowed
            - not_acceptable
            - not_connected
            - not_found
            - not_implemented
            - payment_required
            - precondition_failed
            - project_not_found
            - project_repo_disconnected
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - route_exists
            - route_not_found
            - service_unavailable
            - unauthenticated
            - unsupported_media_type
            - validation_failed
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.