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

# Update a scale target



## OpenAPI

````yaml https://api.arklow.io/swagger/ui/json patch /v1/orgs/{org_id}/scale-targets/{id}
openapi: 3.1.0
info:
  title: Arklow
  description: Arklow's API
  version: 0.1.0
servers:
  - url: https://api.arklow.io
    description: Production
  - url: http://localhost:3123
    description: Local development
security:
  - apiKey: []
tags:
  - name: actions
  - name: api_keys
  - name: billing
  - name: capacity-domains
  - name: credentials
  - name: destinations
  - name: invites
  - name: members
  - name: metrics
  - name: notifications
  - name: orgs
  - name: proposals
  - name: rules
  - name: scale-targets
  - name: sources
  - name: users
  - name: ingress
externalDocs:
  url: https://api.arklow.io/swagger/ui
paths:
  /v1/orgs/{org_id}/scale-targets/{id}:
    patch:
      tags:
        - scale-targets
      summary: Update a scale target
      operationId: patch_v1_orgs_by_org_id_scale_targets_by_id
      parameters:
        - schema:
            type: string
            pattern: ^[0-9]+$
          in: path
          name: org_id
          required: true
        - schema:
            type: string
            pattern: ^[0-9]+$
          in: path
          name: id
          required: true
      requestBody:
        content:
          application/json:
            schema:
              allOf:
                - anyOf:
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - baseten
                        config:
                          type: object
                          properties:
                            model_id:
                              type: string
                              minLength: 1
                            deployment_id:
                              type: string
                              minLength: 1
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - together
                        config:
                          type: object
                          properties:
                            endpoint_id:
                              type: string
                              minLength: 1
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - gcp_mig
                        config:
                          type: object
                          properties:
                            project:
                              type: string
                              minLength: 1
                            location_kind:
                              anyOf:
                                - type: string
                                  enum:
                                    - zone
                                - type: string
                                  enum:
                                    - region
                            location:
                              type: string
                              minLength: 1
                            instance_group_manager:
                              type: string
                              minLength: 1
                            autoscaler:
                              type: string
                              minLength: 1
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - gcp_mig_manual
                        config:
                          type: object
                          properties:
                            project:
                              type: string
                              minLength: 1
                            location_kind:
                              anyOf:
                                - type: string
                                  enum:
                                    - zone
                                - type: string
                                  enum:
                                    - region
                            location:
                              type: string
                              minLength: 1
                            instance_group_manager:
                              type: string
                              minLength: 1
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - http_floor
                        config:
                          type: object
                          properties:
                            endpoint:
                              type: string
                              pattern: ^https://
                    - type: object
                      properties:
                        kind:
                          type: string
                          enum:
                            - http_desired
                        config:
                          type: object
                          properties:
                            endpoint:
                              type: string
                              pattern: ^https://
                - type: object
                  properties:
                    credential_id:
                      type: string
                      pattern: ^[0-9]+$
                    capacity_domain_id:
                      type: string
                      pattern: ^[0-9]+$
                    destination_id:
                      type: string
                      pattern: ^[0-9]+$
                    metric_source_query_id:
                      anyOf:
                        - type: string
                          pattern: ^[0-9]+$
                        - type: 'null'
                    tag_projection_key:
                      anyOf:
                        - type: string
                          minLength: 1
                        - type: 'null'
                    tag_projection_value:
                      anyOf:
                        - type: string
                          minLength: 1
                        - type: 'null'
                    min_replicas:
                      type: integer
                      minimum: 0
                    max_replicas:
                      type: integer
                      minimum: 1
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - errors
                properties:
                  data:
                    anyOf:
                      - allOf:
                          - type: object
                            required:
                              - id
                              - org_id
                              - name
                              - capacity_domain_id
                              - min_replicas
                              - max_replicas
                              - reconcile_pending
                              - observability_degraded
                              - binding_degraded
                              - drift_contested
                              - updated_at
                            properties:
                              id:
                                type: string
                              org_id:
                                type: string
                              name:
                                type: string
                              capacity_domain_id:
                                type: string
                                pattern: ^[0-9]+$
                              metric_source_query_id:
                                anyOf:
                                  - type: string
                                    pattern: ^[0-9]+$
                                  - type: 'null'
                              tag_projection_key:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              tag_projection_value:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              min_replicas:
                                type: integer
                                minimum: 0
                              max_replicas:
                                type: integer
                                minimum: 1
                              effective_min_replicas:
                                anyOf:
                                  - type: integer
                                  - type: 'null'
                              requested_effective_min_replicas:
                                anyOf:
                                  - type: integer
                                  - type: 'null'
                              last_written_at:
                                anyOf:
                                  - type: string
                                    format: date-time
                                  - type: 'null'
                              last_write_outcome:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              reconcile_pending:
                                type: boolean
                              last_observed_replicas:
                                anyOf:
                                  - type: integer
                                  - type: 'null'
                              last_observed_at:
                                anyOf:
                                  - type: string
                                    format: date-time
                                  - type: 'null'
                              last_error:
                                anyOf:
                                  - type: string
                                  - type: 'null'
                              last_error_at:
                                anyOf:
                                  - type: string
                                    format: date-time
                                  - type: 'null'
                              observability_degraded:
                                type: boolean
                              binding_degraded:
                                type: boolean
                              drift_contested:
                                type: boolean
                              updated_at:
                                type: string
                                format: date-time
                              deleted_at:
                                anyOf:
                                  - type: string
                                    format: date-time
                                  - type: 'null'
                          - type: object
                            required:
                              - credential_id
                            properties:
                              credential_id:
                                type: string
                                pattern: ^[0-9]+$
                          - anyOf:
                              - type: object
                                required:
                                  - kind
                                  - config
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - baseten
                                  config:
                                    type: object
                                    required:
                                      - model_id
                                      - deployment_id
                                    properties:
                                      model_id:
                                        type: string
                                        minLength: 1
                                      deployment_id:
                                        type: string
                                        minLength: 1
                                    additionalProperties: false
                              - type: object
                                required:
                                  - kind
                                  - config
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - together
                                  config:
                                    type: object
                                    required:
                                      - endpoint_id
                                    properties:
                                      endpoint_id:
                                        type: string
                                        minLength: 1
                                    additionalProperties: false
                              - type: object
                                required:
                                  - kind
                                  - config
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - gcp_mig
                                  config:
                                    type: object
                                    required:
                                      - project
                                      - location_kind
                                      - location
                                      - instance_group_manager
                                      - autoscaler
                                    properties:
                                      project:
                                        type: string
                                        minLength: 1
                                      location_kind:
                                        anyOf:
                                          - type: string
                                            enum:
                                              - zone
                                          - type: string
                                            enum:
                                              - region
                                      location:
                                        type: string
                                        minLength: 1
                                      instance_group_manager:
                                        type: string
                                        minLength: 1
                                      autoscaler:
                                        type: string
                                        minLength: 1
                                    additionalProperties: false
                              - type: object
                                required:
                                  - kind
                                  - config
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - gcp_mig_manual
                                  config:
                                    type: object
                                    required:
                                      - project
                                      - location_kind
                                      - location
                                      - instance_group_manager
                                    properties:
                                      project:
                                        type: string
                                        minLength: 1
                                      location_kind:
                                        anyOf:
                                          - type: string
                                            enum:
                                              - zone
                                          - type: string
                                            enum:
                                              - region
                                      location:
                                        type: string
                                        minLength: 1
                                      instance_group_manager:
                                        type: string
                                        minLength: 1
                                    additionalProperties: false
                              - type: object
                                required:
                                  - kind
                                  - config
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - http_floor
                                  config:
                                    type: object
                                    required:
                                      - endpoint
                                    properties:
                                      endpoint:
                                        type: string
                                        pattern: ^https://
                                    additionalProperties: false
                              - type: object
                                required:
                                  - kind
                                  - config
                                properties:
                                  kind:
                                    type: string
                                    enum:
                                      - http_desired
                                  config:
                                    type: object
                                    required:
                                      - endpoint
                                    properties:
                                      endpoint:
                                        type: string
                                        pattern: ^https://
                                    additionalProperties: false
                      - type: 'null'
                  errors:
                    anyOf:
                      - type: array
                        items:
                          type: object
                          required:
                            - code
                            - message
                          properties:
                            code:
                              type: string
                            message:
                              type: string
                      - type: 'null'
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-arklow-auth
      in: header

````