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

# Update vectors

> Update vector data for existing points without modifying their payloads. This is useful when re-embedding content or correcting vector values.



## OpenAPI

````yaml put /collections/{collection_name}/points/vectors
openapi: 3.0.3
info:
  title: Actian VectorAI DB - Points API
  description: Point CRUD operations for VectorAI DB.
  version: 1.0.0
  contact:
    name: Actian Corporation
    url: https://www.actian.com
servers:
  - url: http://localhost:6573
    description: Local development server (REST API)
  - url: https://api.vectorai.actian.com
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Points
    description: Point data operations
paths:
  /collections/{collection_name}/points/vectors:
    put:
      tags:
        - Points
      summary: Update vectors
      description: >-
        Update vector data for existing points without modifying their payloads.
        This is useful when re-embedding content or correcting vector values.
      operationId: update_vectors
      parameters:
        - name: collection_name
          in: path
          required: true
          schema:
            type: string
          description: The name of the collection containing the points to update.
          example: my_collection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - points
              properties:
                points:
                  type: array
                  description: >-
                    Array of objects, each containing a point ID and the new
                    vector.
                  items:
                    type: object
                    required:
                      - id
                      - vectors
                    properties:
                      id:
                        oneOf:
                          - type: integer
                          - type: string
                        example: 1
                        description: The ID of the point to update.
                      vectors:
                        type: array
                        items:
                          type: number
                        example:
                          - 0.9
                          - 0.8
                          - 0.7
                          - 0.6
                        description: The new vector data for this point.
            examples:
              update_vectors:
                summary: Update vectors
                value:
                  points:
                    - id: 1
                      vectors:
                        - 0.9
                        - 0.8
                        - 0.7
                        - 0.6
                    - id: 2
                      vectors:
                        - 0.5
                        - 0.4
                        - 0.3
                        - 0.2
      responses:
        '200':
          description: Vectors updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  usage:
                    type: object
                    description: Resource usage information for this request.
                    properties:
                      hardware:
                        type: object
                        nullable: true
                        description: >-
                          Hardware resource counters for the operation,
                          including CPU, payload I/O, payload index I/O, and
                          vector I/O metrics.
                  time:
                    type: number
                    format: double
                    example: 0.00060924
                    description: Time spent to process this request, in seconds.
                  status:
                    type: string
                    example: ok
                    description: Operation status. Returns `ok` on success.
                  result:
                    type: object
                    description: >-
                      Operation result containing the status of the vector
                      update.
                    properties:
                      operation_id:
                        type: integer
                        example: 0
                        description: Unique identifier for the operation.
                      status:
                        type: string
                        example: Completed
                        description: >-
                          Status of the operation. Returns `Completed` when the
                          operation finishes successfully.
              example:
                usage:
                  hardware: null
                time: 0.00060924
                status: ok
                result:
                  operation_id: 0
                  status: Completed
        4XX:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-codeSamples:
        - lang: Python
          label: Update vectors
          source: |
            from actian_vectorai_client import VectorAIClient
            import random

            with VectorAIClient("localhost:6574") as client:
                # Update vector for a point
                new_vector = [random.gauss(0, 1) for _ in range(32)]
                result = client.points.update_vectors(
                    "my_collection",
                    points=[{"id": 1, "vectors": new_vector}]
                )
                print("✓ Updated vector for point 1")
        - lang: JavaScript
          label: Update vectors
          source: |
            import { VectorAIClient } from '@actian/vectorai-client';

            const client = new VectorAIClient('localhost:6574');

            await client.points.updateVectors('my_collection', [
                { id: 1, vectors: [0.9, 0.8, 0.7, 0.6] },
                { id: 2, vectors: [0.5, 0.4, 0.3, 0.2] },
            ]);
            console.log('Updated vectors for points 1 and 2');

            client.close();
        - lang: cURL
          label: Update vectors
          source: >
            curl -X PUT
            "http://localhost:6573/collections/my_collection/points/vectors" \
              -H "Content-Type: application/json" \
              -H 'Authorization: Bearer <admin-jwt-or-access-token>' \
              -d '{
                "points": [
                  {
                    "id": 1,
                    "vectors": [0.9, 0.8, 0.7, 0.6]
                  }
                ]
              }'
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error response returned when a request fails.
      properties:
        status:
          type: object
          description: Status object containing the error message.
          properties:
            error:
              type: string
              description: Human-readable error message describing what went wrong.
              example: Collection `my_collection` doesn't exist!
        time:
          type: number
          format: double
          description: Time spent to process this request, in seconds.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Admin JWT or access token for authenticating requests to VectorAI DB.

````

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