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

# Bulk Update Devices

> Apply a config field, an added phone button layout and/or a reboot to up to 500 devices. Over 25 devices runs in the background (202); poll GET /bulk/:batchId.



## OpenAPI

````yaml https://api.voxo.co/v2/docs/openapi.json patch /v2/admin/devices/bulk
openapi: 3.1.0
info:
  title: VOXO API
  description: VOXO Communication Platform API
  version: 2.0.0
servers:
  - url: https://api.voxo.co
security:
  - bearerAuth: []
paths:
  /v2/admin/devices/bulk:
    patch:
      tags:
        - Devices
      summary: Bulk Update Devices
      description: >-
        Apply a config field, an added phone button layout and/or a reboot to up
        to 500 devices. Over 25 devices runs in the background (202); poll GET
        /bulk/:batchId.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tenantId:
                  type: integer
                  exclusiveMinimum: 0
                  maximum: 9007199254740991
                  description: Tenant ID
                items:
                  minItems: 1
                  maxItems: 500
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: integer
                        exclusiveMinimum: 0
                        maximum: 9007199254740991
                        description: Device ID
                      config:
                        description: >-
                          Partial upsert of outside-loop config fields (see
                          update)
                        minItems: 1
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                              description: >-
                                Field name from the phone-model template
                                (matches al_autoprovisionlabels.al_value)
                            value:
                              type: string
                              description: Override value to persist for this field
                          required:
                            - name
                            - value
                          additionalProperties: false
                      addPhoneButtonLayoutId:
                        description: >-
                          Button layout to add to the device's phone layouts;
                          existing layouts are kept
                        type: integer
                        exclusiveMinimum: 0
                        maximum: 9007199254740991
                      reboot:
                        description: >-
                          Resync the phone (check-sync NOTIFY to its line 1
                          peer)
                        type: boolean
                    required:
                      - id
                    additionalProperties: false
              required:
                - tenantId
                - items
              additionalProperties: false
      responses:
        '200':
          description: Per-item bulk update result
          content:
            application/json:
              schema:
                type: object
                properties:
                  succeeded:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: number
                          description: Index of the item in the request payload
                        id:
                          type: number
                          description: Created/updated/deleted extension id
                      required:
                        - index
                        - id
                      additionalProperties: false
                  failed:
                    type: array
                    items:
                      type: object
                      properties:
                        index:
                          type: number
                          description: Index of the item in the request payload
                        code:
                          type: number
                          description: Per-item error status code
                        message:
                          type: string
                          description: Per-item error message
                      required:
                        - index
                        - code
                        - message
                      additionalProperties: false
                  summary:
                    type: object
                    properties:
                      total:
                        type: number
                      succeeded:
                        type: number
                      failed:
                        type: number
                    required:
                      - total
                      - succeeded
                      - failed
                    additionalProperties: false
                required:
                  - succeeded
                  - failed
                  - summary
                additionalProperties: false
        '202':
          description: Accepted; poll the batch status
          content:
            application/json:
              schema:
                type: object
                properties:
                  batchId:
                    type: string
                    description: Batch identifier to poll for results
                  statusUrl:
                    type: string
                    description: Relative URL to poll for batch status
                required:
                  - batchId
                  - statusUrl
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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