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

# Edit Device

> Update device metadata or apply a new configuration



## OpenAPI

````yaml Patch /v1/devices/{id}
openapi: 3.1.0
info:
  title: ManageXR API
  description: API documentation for ManageXR
  version: 1.0.0
servers:
  - url: https://managexrapi.com
    description: ManageXR API Server
security:
  - basicAuth: []
paths:
  /v1/devices/{id}:
    patch:
      summary: Update a device by id
      description: Update device metadata or apply a new configuration
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Unique identifier (serial number) of the device
        - name: organizationId
          in: query
          required: false
          schema:
            type: string
          description: >
            Unique identifier of the organization. This parameter is only
            necessary when using multi-organization API keys. 


            Defaults to the organizationId associated with the API key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Name of the device
                  example: Device_123
                configurationId:
                  type: string
                  description: ID of new configuration to assign to the device
                  example: AKDJF139UGNLA12J
                notes:
                  type: string
                  description: Device notes
                  example: This device was recently moved on 9/15
                tagIds:
                  type: array
                  items:
                    type: string
                  description: Ids of tags to apply to device
                  example:
                    - KADJFL2U4T
                    - AKLU32OI2QU5U
      responses:
        '200':
          description: Success
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 403
                  message:
                    type: string
                    example: Forbidden
                  error:
                    type: string
                    example: ManageXR Error
              example:
                statusCode: 403
                message: Forbidden
                error: ManageXR Error
        '404':
          description: Device not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  statusCode:
                    type: number
                    example: 404
                  message:
                    type: string
                    example: Not found
                  error:
                    type: string
                    example: ManageXR Error
              example:
                statusCode: 404
                message: Not found error
                error: ManageXR Error
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: >
        API key based authentication where <encoded-value> is the Base64
        encoding of `API_KEY_ID`:`API_KEY_SECRET`

        - **Username**: The API Key ID.

        - **Password**: The API Key Secret.

````