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

# Bulk update contact status

> Updates `status`, `pipelineStage` (and inferred `pipelineId`) on every contact in `contactIds`. Records pipeline transitions for contacts whose status actually changed and logs a manual event per contact. Org-scoped unless caller is SUPERADMIN.



## OpenAPI

````yaml /api-reference/openapi.yaml put /api/contacts/bulk-update-status
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/contacts/bulk-update-status:
    put:
      tags:
        - Contacts
      summary: Bulk update contact status
      description: >-
        Updates `status`, `pipelineStage` (and inferred `pipelineId`) on every
        contact in `contactIds`. Records pipeline transitions for contacts whose
        status actually changed and logs a manual event per contact. Org-scoped
        unless caller is SUPERADMIN.
      operationId: put_contacts_bulk_update_status
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkUpdateContactStatusRequest'
      responses:
        '200':
          description: Bulk update completed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkUpdateStatusResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    BulkUpdateContactStatusRequest:
      type: object
      properties:
        contactIds:
          type: array
          items:
            type: string
          description: Contact `_id`s to move; org-scoped unless the caller is SUPERADMIN.
        status:
          type: string
          description: Target pipeline status name to assign to every contact.
        pipelineStageId:
          type: string
          description: >-
            Target pipeline stage `_id`; resolved together with `status` to also
            infer `pipelineId`.
      required:
        - contactIds
        - status
        - pipelineStageId
      additionalProperties: false
      example:
        contactIds:
          - 64f0a1b2c3d4e5f6a7b8c9d0
          - 64f0a1b2c3d4e5f6a7b8c9d5
        status: Qualified
        pipelineStageId: 64f0a1b2c3d4e5f6a7b8c9d2
    BulkUpdateStatusResponse:
      type: object
      properties:
        message:
          type: string
        modifiedCount:
          type: integer
        matchedCount:
          type: integer
      additionalProperties: true
      example:
        message: Bulk update completed
        modifiedCount: 12
        matchedCount: 12
    LegacyErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        data: {}
      additionalProperties: true
      example:
        error: Attachment not found
        message: Attachment not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````