Update device metadata
/devices/{deviceID}Update APNs token, app version, or device name. All fields are optional.
BearerPath parameters
deviceIDRequest body
device_nameUser-assigned device name (e.g. "Ada's iPhone").
apns_tokenApple Push Notification service device token; null until the device registers for push.
app_versionVersion of the Phosra app installed on the device.
os_versionOperating-system version reported by the device (e.g. `18.5`).
Response
idUnique identifier for this resource.
child_idIdentifier of the child this resource belongs to.
family_idIdentifier of the family this resource belongs to.
platform_idIdentifier of the associated platform.
device_nameUser-assigned device name (e.g. "Ada's iPhone").
device_modelHardware model identifier (e.g. `iPhone15,3`).
os_versionOperating-system version reported by the device (e.g. `18.5`).
app_versionVersion of the Phosra app installed on the device.
apns_tokenApple Push Notification service device token; null until the device registers for push.
capabilitiesApple frameworks the device supports (e.g. FamilyControls, ManagedSettings, DeviceActivity)
enforcement_summaryPer-category enforcement results from the device's last enforcement_status report
last_seen_atRFC 3339 timestamp.
last_policy_versionPolicy version the device last successfully applied.
statusCurrent lifecycle state of the resource.
created_atRFC 3339 timestamp of when the resource was created.
updated_atRFC 3339 timestamp of the resource's most recent update.
curl -sS -X PUT "https://phosra-api-sandbox-production.up.railway.app/api/v1/devices/d1e2f3a4-5b6c-4d7e-8f90-a1b2c3d4e5f6" \
-H "Authorization: Bearer $PHOSRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"device_name": "Mia iPhone",
"app_version": "1.5.0",
"os_version": "18.6"
}'{
"id": "550e8400-e29b-41d4-a716-446655440000",
"child_id": "550e8400-e29b-41d4-a716-446655440000",
"family_id": "550e8400-e29b-41d4-a716-446655440000",
"platform_id": "string",
"device_name": "string",
"device_model": "string",
"os_version": "string",
"app_version": "string",
"apns_token": null,
"capabilities": [
"string"
],
"enforcement_summary": {},
"last_seen_at": null,
"last_policy_version": 0,
"status": "active",
"created_at": "2025-01-15T09:30:00Z",
"updated_at": "2025-01-15T09:30:00Z"
}