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

# Update a transition

> Updates a specific transition by ID



## OpenAPI

````yaml put /api/models/{modelId}/transitions/{transitionId}
openapi: 3.0.0
info:
  title: Dalus Public API Documentation
  version: 1.0.0
  description: Public API documentation for Dalus application
servers:
  - url: http://localhost:3000
    description: Dalus API Server
security:
  - bearerAuth: []
tags:
  - name: models
    description: AI model management endpoints
  - name: models/requirements
    description: Requirements management for models
  - name: models/actions
    description: Action management for models
  - name: models/parts
    description: Part management for models
  - name: models/states
    description: State management for models
  - name: models/transitions
    description: Transition relationship management for models
  - name: models/signals
    description: Signal relationship management for models
  - name: models/interfaces
    description: Interface relationship management for models
  - name: models/ports
    description: Port management for models
paths:
  /api/models/{modelId}/transitions/{transitionId}:
    put:
      tags:
        - models/transitions
      summary: Update a transition
      description: Updates a specific transition by ID
      parameters:
        - name: modelId
          in: path
          required: true
          description: ID of the model
          schema:
            type: string
            format: uuid
        - name: transitionId
          in: path
          required: true
          description: ID of the transition
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                sourceId:
                  type: string
                  description: ID of the source state
                targetId:
                  type: string
                  description: ID of the target state
                type:
                  type: string
                  description: Type of transition
                name:
                  type: string
                  description: Name of the transition
                description:
                  type: string
                  description: Description of the transition
                metadata:
                  type: object
                  description: Additional metadata for the transition
      responses:
        '200':
          description: Transition updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transition'
        '400':
          description: Invalid model ID or transition ID
        '401':
          description: Not authenticated
        '403':
          description: Forbidden - insufficient permissions
        '404':
          description: Model or transition not found
        '500':
          description: Server error
components:
  schemas:
    Transition:
      type: object
      properties:
        id:
          type: string
          description: The id of the edge
        type:
          type: string
          description: The type of the edge
        source:
          type: string
          description: The source node id
        target:
          type: string
          description: The target node id
        data:
          type: object
          properties:
            label:
              type: string
            effects:
              type: array
              items:
                type: string
            notes:
              type: string
            direction:
              type: string
              enum:
                - out
                - in
                - both
              default: out
            guards:
              type: array
              items:
                type: object
                properties:
                  limit:
                    anyOf:
                      - type: number
                      - type: string
                      - type: boolean
                  operator:
                    type: string
                    enum:
                      - '>'
                      - <
                      - '>='
                      - <=
                      - '='
                  variableId:
                    type: string
                  id:
                    type: string
                  type:
                    type: string
                    enum:
                      - attribute
                      - connection
                required:
                  - limit
                  - operator
                  - variableId
                  - id
                  - type
          required:
            - label
            - effects
            - direction
          additionalProperties: true
          description: The data associated with the edge
      required:
        - id
        - type
        - source
        - target
        - data
      description: A transition between states in the model
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````