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

# Update an inventory movement

> Base ViewSet para modelos que referencian a Stakeholder.
Enriquecemos el queryset con joins y un campo 'stakeholder_name',
y aplicamos automáticamente el filtro por member_id si está en el request.



## OpenAPI

````yaml /api-reference/openapi.json put /inventory/movement/{id}/
openapi: 3.0.3
info:
  title: Fail Fast API
  version: v1
  description: >-
    REST API for the Fail Fast platform. Authenticate with a workspace API key
    sent as a bearer token. Every response uses the `{message, error, data}`
    envelope.
servers:
  - url: https://api.failfast.ai
security: []
paths:
  /inventory/movement/{id}/:
    put:
      tags:
        - Inventory
      summary: Update an inventory movement
      description: >-
        Base ViewSet para modelos que referencian a Stakeholder.

        Enriquecemos el queryset con joins y un campo 'stakeholder_name',

        y aplicamos automáticamente el filtro por member_id si está en el
        request.
      operationId: inventory_movement_update
      parameters:
        - in: path
          name: id
          schema:
            type: string
            format: uuid
          description: A UUID string identifying this movement.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Movement'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Movement'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Movement'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - error
                  - data
                properties:
                  message:
                    type: string
                    description: Human-readable outcome of the request.
                  error:
                    type: boolean
                    description: true when the request failed.
                    example: false
                  data:
                    $ref: '#/components/schemas/Movement'
          description: ''
      security:
        - apiKey: []
components:
  schemas:
    Movement:
      type: object
      description: |-
        A ModelSerializer that takes an additional `fields` argument that
        controls which fields should be displayed.
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          readOnly: true
        custom_fields:
          nullable: true
        operation_number:
          type: integer
          maximum: 2147483647
          minimum: 0
          default: 0
        operation_date:
          type: string
          format: date-time
        operation_status:
          $ref: '#/components/schemas/OperationStatusEnum'
        status_description:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        deleted_at:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        audit_status:
          allOf:
            - $ref: '#/components/schemas/AuditStatusEnum'
          readOnly: true
        description:
          type: string
          nullable: true
        is_entry:
          type: boolean
        additional_info:
          type: string
          nullable: true
        is_directly_created:
          type: boolean
        member:
          type: string
          format: uuid
          readOnly: true
        operation:
          type: string
          format: uuid
        market_exchange_rate:
          type: string
          format: uuid
          nullable: true
        branch_office:
          type: string
          format: uuid
        created_by:
          type: string
          format: uuid
          readOnly: true
        updated_by:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        deleted_by:
          type: string
          format: uuid
          readOnly: true
          nullable: true
        warehouse:
          type: string
          format: uuid
        source_inventory:
          type: string
          format: uuid
          nullable: true
        app:
          type: string
          format: uuid
        stakeholder:
          type: string
          format: uuid
      required:
        - app
        - audit_status
        - branch_office
        - created_at
        - created_by
        - deleted_at
        - deleted_by
        - id
        - is_entry
        - member
        - name
        - operation
        - operation_date
        - stakeholder
        - updated_at
        - updated_by
        - warehouse
    OperationStatusEnum:
      enum:
        - PR
        - CO
        - ER
      type: string
      description: |-
        * `PR` - Provisional
        * `CO` - Complete
        * `ER` - Error
    AuditStatusEnum:
      enum:
        - C
        - U
        - D
      type: string
      description: |-
        * `C` - Created
        * `U` - Updated
        * `D` - Deleted
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        Workspace API key sent as a bearer token: `Authorization: Bearer
        failfast_...`. Create keys in Settings -> Workspace -> API Keys.

````