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

# Update Decision

> Edit a proposed or active decision. Only the fields you send change; a link list you send replaces that list.



## OpenAPI

````yaml /openapi-v1.json put /api/v1/decisions/{ref}
openapi: 3.1.0
info:
  title: AGO Public API
  version: 1.0.0
  description: Programmatic access to your AGO workspace.
servers:
  - url: https://{tenant_id}.api.useago.com
    description: AGO Public API v1
    variables:
      tenant_id:
        default: your-tenant-id
        description: Your AGO tenant identifier
security: []
paths:
  /api/v1/decisions/{ref}:
    put:
      tags:
        - Decisions
      summary: Update Decision
      description: >-
        Edit a proposed or active decision. Only the fields you send change; a
        link list you send replaces that list.
      operationId: update_decision
      parameters:
        - in: path
          name: ref
          schema:
            title: Ref
            type: string
          required: true
        - in: query
          name: language
          schema:
            default: en
            title: Language
            type: string
          required: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DecisionUpdate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionDetailOut'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DecisionConflictsOut'
      security:
        - ScopedAPIKeyAuth: []
components:
  schemas:
    DecisionUpdate:
      properties:
        title:
          anyOf:
            - maxLength: 200
              type: string
            - type: 'null'
          title: Title
        theme:
          anyOf:
            - maxLength: 80
              type: string
            - type: 'null'
          title: Theme
        decision:
          anyOf:
            - maxLength: 10000
              type: string
            - type: 'null'
          title: Decision
        decided_on:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Decided On
        why:
          anyOf:
            - maxLength: 10000
              type: string
            - type: 'null'
          title: Why
        people:
          anyOf:
            - items:
                type: string
              maxItems: 30
              type: array
            - type: 'null'
          title: People
        source_url:
          anyOf:
            - maxLength: 500
              type: string
            - type: 'null'
          title: Source Url
        review_on:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Review On
        replaces:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Replaces
        cancels:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cancels
        related:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Related
        rule_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Rule Ids
        conflict_check:
          default: enforce
          enum:
            - enforce
            - skip
          title: Conflict Check
          type: string
      title: DecisionUpdate
      type: object
    DecisionDetailOut:
      properties:
        object:
          default: decision
          title: Object
          type: string
        id:
          title: Id
          type: string
        reference:
          title: Reference
          type: string
        title:
          title: Title
          type: string
        theme:
          title: Theme
          type: string
        decided_on:
          format: date
          title: Decided On
          type: string
        decision:
          title: Decision
          type: string
        why:
          title: Why
          type: string
        people:
          items:
            $ref: '#/components/schemas/DecisionPerson'
          title: People
          type: array
        source_url:
          title: Source Url
          type: string
        review_on:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Review On
        status:
          title: Status
          type: string
        status_reason:
          title: Status Reason
          type: string
        replaces:
          items:
            $ref: '#/components/schemas/DecisionRef'
          title: Replaces
          type: array
        replaced_by:
          items:
            $ref: '#/components/schemas/DecisionRef'
          title: Replaced By
          type: array
        cancels:
          items:
            $ref: '#/components/schemas/DecisionRef'
          title: Cancels
          type: array
        cancelled_by:
          items:
            $ref: '#/components/schemas/DecisionRef'
          title: Cancelled By
          type: array
        related:
          items:
            $ref: '#/components/schemas/DecisionRef'
          title: Related
          type: array
        rules:
          items:
            $ref: '#/components/schemas/DecisionRuleRef'
          title: Rules
          type: array
        recorded_by:
          $ref: '#/components/schemas/DecisionActor'
        confirmed_by:
          anyOf:
            - $ref: '#/components/schemas/DecisionActor'
            - type: 'null'
        version:
          title: Version
          type: integer
        updated_at:
          format: date-time
          title: Updated At
          type: string
        history:
          items:
            $ref: '#/components/schemas/DecisionChange'
          title: History
          type: array
      required:
        - id
        - reference
        - title
        - theme
        - decided_on
        - decision
        - why
        - people
        - source_url
        - status
        - status_reason
        - replaces
        - replaced_by
        - cancels
        - cancelled_by
        - related
        - rules
        - recorded_by
        - version
        - updated_at
        - history
      title: DecisionDetailOut
      type: object
    DecisionConflictsOut:
      properties:
        detail:
          title: Detail
          type: string
        code:
          default: contradicts_decisions
          title: Code
          type: string
        conflicts:
          items:
            $ref: '#/components/schemas/DecisionContradiction'
          title: Conflicts
          type: array
      required:
        - detail
        - conflicts
      title: DecisionConflictsOut
      type: object
    DecisionPerson:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
      title: DecisionPerson
      type: object
    DecisionRef:
      properties:
        id:
          title: Id
          type: string
        reference:
          title: Reference
          type: string
        title:
          title: Title
          type: string
        status:
          title: Status
          type: string
      required:
        - id
        - reference
        - title
        - status
      title: DecisionRef
      type: object
    DecisionRuleRef:
      properties:
        id:
          title: Id
          type: string
        title:
          title: Title
          type: string
      required:
        - id
        - title
      title: DecisionRuleRef
      type: object
    DecisionActor:
      properties:
        name:
          title: Name
          type: string
        via:
          title: Via
          type: string
        at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: At
      required:
        - name
        - via
      title: DecisionActor
      type: object
    DecisionChange:
      properties:
        version:
          title: Version
          type: integer
        change:
          title: Change
          type: string
        changed_by:
          $ref: '#/components/schemas/DecisionActor'
        title:
          title: Title
          type: string
        decision:
          title: Decision
          type: string
        status:
          title: Status
          type: string
      required:
        - version
        - change
        - changed_by
        - title
        - decision
        - status
      title: DecisionChange
      type: object
    DecisionContradiction:
      properties:
        decision:
          $ref: '#/components/schemas/DecisionRef'
        reason:
          title: Reason
          type: string
      required:
        - decision
        - reason
      title: DecisionContradiction
      type: object
  securitySchemes:
    ScopedAPIKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

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