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

# Save Positions

> Save or update node positions for the authenticated user.

Merges provided positions with existing saved state. Nodes not
included in the request are left unchanged.

Returns:
    Complete set of saved positions after merge.



## OpenAPI

````yaml https://api.pragmatiks.io/openapi.json put /canvas/positions
openapi: 3.1.0
info:
  title: Pragma API
  version: 0.1.0
servers: []
security: []
paths:
  /canvas/positions:
    put:
      tags:
        - canvas
      summary: Save Positions
      description: |-
        Save or update node positions for the authenticated user.

        Merges provided positions with existing saved state. Nodes not
        included in the request are left unchanged.

        Returns:
            Complete set of saved positions after merge.
      operationId: canvas-save_positions
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CanvasPositionsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CanvasPositionsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CanvasPositionsRequest:
      properties:
        positions:
          additionalProperties:
            $ref: '#/components/schemas/NodePosition'
          type: object
          title: Positions
      type: object
      required:
        - positions
      title: CanvasPositionsRequest
      description: |-
        Request body for saving or updating node positions.

        Positions are merged with existing state. Nodes not included
        in the request are left unchanged.

        Attributes:
            positions: Map of resource ID to position to save (max 1000 entries).
    CanvasPositionsResponse:
      properties:
        positions:
          additionalProperties:
            $ref: '#/components/schemas/NodePosition'
          type: object
          title: Positions
      type: object
      title: CanvasPositionsResponse
      description: |-
        Response body for canvas position queries.

        Attributes:
            positions: Map of resource ID to node position.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    NodePosition:
      properties:
        x:
          type: number
          title: X
        'y':
          type: number
          title: 'Y'
        pinned:
          type: boolean
          title: Pinned
          default: false
      type: object
      required:
        - x
        - 'y'
      title: NodePosition
      description: |-
        Position and pin state for a single node on the canvas.

        Attributes:
            x: Horizontal position in canvas coordinates.
            y: Vertical position in canvas coordinates.
            pinned: Whether the node is excluded from auto-layout.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````