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

# Set the organisation's CI runner label

> Set the GitHub Actions runner label generated pipelines run on. Organisation admins only. The label is validated rather than accepted as free text: one label of at most 64 characters, starting and ending with a letter or digit, containing only letters, digits, '-', '_' and '.' (for example ubuntu-latest, depot-ubuntu-24.04, self-hosted). Anything else answers 400 - a label outside that grammar produces a workflow GitHub cannot parse or run, and the generators concatenate it into a YAML scalar. An explicit null clears the choice and puts every future generation back on the default. A browser session twin is mounted at the same path without the /api/v1 prefix (cookie authentication plus the X-Ankra-CSRF double-submit header).



## OpenAPI

````yaml https://platform.ankra.app/openapi.json put /api/v1/org/applications/settings
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /api/v1/org/applications/settings:
    put:
      tags:
        - Applications API
      summary: Set the organisation's CI runner label
      description: >-
        Set the GitHub Actions runner label generated pipelines run on.
        Organisation admins only. The label is validated rather than accepted as
        free text: one label of at most 64 characters, starting and ending with
        a letter or digit, containing only letters, digits, '-', '_' and '.'
        (for example ubuntu-latest, depot-ubuntu-24.04, self-hosted). Anything
        else answers 400 - a label outside that grammar produces a workflow
        GitHub cannot parse or run, and the generators concatenate it into a
        YAML scalar. An explicit null clears the choice and puts every future
        generation back on the default. A browser session twin is mounted at the
        same path without the /api/v1 prefix (cookie authentication plus the
        X-Ankra-CSRF double-submit header).
      operationId: set_application_ci_settings_api_v1
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: x-ankra-organisation-id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Ankra-Organisation-Id
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetApplicationCISettingsRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApplicationCISettings'
          description: Successful Response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: The runner label is outside the accepted grammar
        '401':
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DemoDetailError'
          description: >-
            Forbidden ("Only organisation admins can change the application CI
            settings.")
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    SetApplicationCISettingsRequest:
      description: >-
        ci_runner_label is required; an explicit null clears the organisation's
        choice.
      properties:
        ci_runner_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Ci Runner Label
      required:
        - ci_runner_label
      title: SetApplicationCISettingsRequest
      type: object
    ApplicationCISettings:
      description: >-
        The organisation's application CI settings. ci_runner_label is the
        runs-on value generated pipelines carry; is_default reports that the
        organisation has never chosen one, so the label is Ankra's default
        rather than a decision - a build that never starts reads very
        differently under the two.
      properties:
        ci_runner_label:
          title: Ci Runner Label
          type: string
        is_default:
          title: Is Default
          type: boolean
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      required:
        - ci_runner_label
        - is_default
        - updated_at
      title: ApplicationCISettings
      type: object
    DemoDetailError:
      description: >-
        The FastAPI-style detail envelope the demo routes use for
        400/403/404/409/502 responses.
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````