Update a device

Update a device by the given id.

patch
Path parameters
idstringRequired

The id of the device.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Auth-KeystringRequired

This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.

Example: YOUR_AUTH_KEY
Body

This class provides the Device Command Request Dto.

typestring · enumRequiredPossible values:
codestring · min: 1Required

The code of the device.

isMobileAppbooleanOptional

Flag indicating if the device is a mobile app. By default, it is false.

tagsstring | nullableOptional

The tags of the device.

statusstring · enumOptionalPossible values:
isDefaultboolean | nullableOptional

Flag indicating if the device is the default device.

testModeboolean | nullableOptional

The test mode of the device.

namestring · min: 1Required

The name of the device.

phoneNumberstring | nullableOptional

The phone number of the device.

osDevicestring · min: 1Required

The operating system of the device.

appVersionNumberstring · min: 1Required

The version of the operating system of the device.

iccidstring | nullableOptional

The iccid of the device.

imsistring | nullableOptional

The imsi of the device.

imeistring | nullableOptional

The imei of the device.

simCardInfostring | nullableOptional

The sim card info of the device.

Responses
200
The request was successful.
application/json
patch
PATCH /api/v1/devices/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 355

{
  "type": "Mobile",
  "code": "DEV-001",
  "isMobileApp": true,
  "tags": "production, android",
  "status": "Active",
  "isDefault": true,
  "testMode": false,
  "name": "Steve's Android Phone",
  "phoneNumber": "+123456789",
  "osDevice": "Android",
  "appVersionNumber": "3.1.0",
  "iccid": "89148000001234567890",
  "imsi": "310150123456789",
  "imei": "358240051111110",
  "simCardInfo": "CarrierX - Plan A"
}
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "id": "sApKpllz4sAplsmzha",
    "type": "Web",
    "code": "XYZ123",
    "isMobileApp": true,
    "tags": "android, smartphone",
    "status": "Active",
    "isDefault": true,
    "testMode": false,
    "name": "John's Phone",
    "phoneNumber": "+1234567890",
    "osDevice": "Android",
    "appVersionNumber": "1.0.5",
    "iccid": "89148000000000000001",
    "imsi": "310260000000000",
    "imei": "356938035643809",
    "simCardInfo": "Verizon SIM",
    "modifiedDate": "2025-06-23T06:56:00.4502964Z"
  },
  "errors": []
}

Last updated

Was this helpful?