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

# Replace the current team's run defaults

> Requires the team:write scope.

An interactive owner session is required; bearer tokens cannot call this operation.



## OpenAPI

````yaml /openapi.yaml put /api/v1/team/run-defaults
openapi: 3.1.0
info:
  title: Factorize API
  version: 1.0.0
  description: >-
    Versioned Factorize REST API. See the hosted docs for examples and OAuth
    discovery.
  x-dashboard-auth: >-
    Access-token and authorized-client management and trace replay operations
    require an interactive owner session; all other operations accept a suitably
    scoped bearer token or owner session.
servers:
  - url: https://app.factorize.sh
security:
  - bearerAuth: []
paths:
  /api/v1/team/run-defaults:
    put:
      tags:
        - team
      summary: Replace the current team's run defaults
      description: >-
        Requires the team:write scope.


        An interactive owner session is required; bearer tokens cannot call this
        operation.
      operationId: put_api_v1_team_run_defaults
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                executionConfigId:
                  type: string
                  minLength: 1
                requiresVm:
                  type: boolean
                model:
                  type: string
                  maxLength: 120
                effort:
                  type: string
                  enum:
                    - ''
                    - minimal
                    - low
                    - medium
                    - high
                    - xhigh
                vmImage:
                  type: string
                  maxLength: 512
                  pattern: >-
                    ^(?:(?:(?:[A-Za-z0-9]+(?:[._-][A-Za-z0-9]+)*\/)?[A-Za-z0-9]+(?:[._-][A-Za-z0-9]+)*(?:\/[A-Za-z0-9]+(?:[._-][A-Za-z0-9]+)*)*(?::[A-Za-z0-9_][A-Za-z0-9_.-]{0,127})?(?:@sha256:[a-f0-9]{64})?))?$
                tags:
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$
                modelAccountId:
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                portableIntegrationIds:
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                githubInstallationIds:
                  maxItems: 100
                  type: array
                  items:
                    type: integer
                    exclusiveMinimum: 0
                    maximum: 9007199254740991
                linearConnectionId:
                  anyOf:
                    - type: string
                      const: linear
                    - type: 'null'
                xConnectionIds:
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                runScopes:
                  description: >-
                    Factorize API scopes for new trigger runs. Omission uses
                    existing scopes on update or read/invoke defaults on create;
                    an empty array grants no application scopes. triggers:write
                    permits configuring triggers and their future run scopes.
                  maxItems: 13
                  type: array
                  items:
                    type: string
                    enum:
                      - team:read
                      - team:write
                      - triggers:read
                      - triggers:write
                      - runs:read
                      - runs:invoke
                      - runs:start
                      - runs:cancel
                      - runs:write
                      - integrations:read
                      - integrations:write
                      - skills:read
                      - skills:write
                capacity:
                  type: integer
                  minimum: 1
                  maximum: 50
                concurrencyLimit:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                allowedTriggerIds:
                  maxItems: 100
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
              additionalProperties: false
      responses:
        '200':
          description: Team run defaults
          content:
            application/json:
              schema:
                type: object
                properties:
                  executionConfigId:
                    type: string
                    minLength: 1
                  requiresVm:
                    type: boolean
                  model:
                    type: string
                    maxLength: 120
                  effort:
                    type: string
                    enum:
                      - ''
                      - minimal
                      - low
                      - medium
                      - high
                      - xhigh
                  vmImage: {}
                  tags:
                    maxItems: 20
                    type: array
                    items:
                      type: string
                      pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{0,63}$
                  modelAccountId:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                  portableIntegrationIds:
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                  githubInstallationIds:
                    maxItems: 100
                    type: array
                    items:
                      type: integer
                      exclusiveMinimum: 0
                      maximum: 9007199254740991
                  linearConnectionId:
                    anyOf:
                      - type: string
                        const: linear
                      - type: 'null'
                  xConnectionIds:
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                  runScopes:
                    description: >-
                      Factorize API scopes for new trigger runs. Omission uses
                      existing scopes on update or read/invoke defaults on
                      create; an empty array grants no application scopes.
                      triggers:write permits configuring triggers and their
                      future run scopes.
                    maxItems: 13
                    type: array
                    items:
                      type: string
                      enum:
                        - team:read
                        - team:write
                        - triggers:read
                        - triggers:write
                        - runs:read
                        - runs:invoke
                        - runs:start
                        - runs:cancel
                        - runs:write
                        - integrations:read
                        - integrations:write
                        - skills:read
                        - skills:write
                  capacity:
                    type: integer
                    minimum: 1
                    maximum: 50
                  concurrencyLimit:
                    type: integer
                    minimum: 0
                    maximum: 9007199254740991
                  allowedTriggerIds:
                    maxItems: 100
                    type: array
                    items:
                      type: string
                      format: uuid
                      pattern: >-
                        ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                additionalProperties: false
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '409':
          $ref: '#/components/responses/Error409'
        '415':
          $ref: '#/components/responses/Error415'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - cookieAuth: []
components:
  responses:
    Error400:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: Invalid or revoked credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: Missing scope or required owner session
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error404:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error409:
      description: Operation conflict
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error415:
      description: Unsupported media type; use application/json
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error429:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error500:
      description: Internal error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: Service unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: OAuth2
    cookieAuth:
      type: apiKey
      in: cookie
      name: factorize_session

````

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