On this page

    1. Home
    2. API
    3. API Reference
    4. Device
    5. Set Device Name

    Set Device Name

    This endpoint allows you to update the display name of a device within your network. This is useful for organization and identification when managing multiple provider or client devices.


    POST /device/set-name

    Updates the name of a specific device.

    Request

    POST /device/set-name

    Headers:

    {
      "Host": "api.bringyour.com",
      "Content-Type": "application/json",
      "Authorization": "Bearer YOUR_JWT_TOKEN"
    }

    Body:

    {
      "device_id": "string",
      "device_name": "string"
    }

    Fields

    FieldTypeDescription
    device_idstringRequired. The unique UDID of the device to rename.
    device_namestringRequired. The new display name for the device.

    Response

    200 Success

    Status: 200 OK

    Content-Type: application/json

    {
      "error": {
        "message": "string"
      }
    }

    Fields

    FieldTypeDescription
    errorobjectPresent if the update failed (null on success).
    error.messagestringDetails on why the name update could not be processed.

    Example

    HTTP Request

    POST /device/set-name HTTP/1.1
    Host: api.bringyour.com
    Content-Type: application/json
    Authorization: Bearer YOUR_JWT_TOKEN
     
    {
      "device_id": "c73040c1-0000-0000-0000-000000000000",
      "device_name": "Living Room Hub"
    }

    Successful HTTP Response

    {
      "error": null
    }


    Powered by Sudoc v2.5.0
    Hide table of contents