Add or update a customer device
Customers can have more than one device. Use this method to add iOS and Android devices to, or update devices for, a customer profile.
- identifierrequired
The unique value representing a person. The values you use to identify a person may be an
id,emailaddress, or thecio_id(when updating people), depending on your workspace settings. When you reference people bycio_id, you must prefix the value withcio_.You can't reference a person by their
phonenumber here. We determine the identifier type from the shape of the value, so a phone number in the path is treated as anid. To identify people by phone number, use the Track v2 API.- Type: string · id
The unique identifier for a person that you want to create or modify.
Define the device you want to add to the customer profile.
- Type: objectdevicerequired
Device properties collected by Customer.io SDKs unless
autoTrackDeviceAttributesis disabled. You can use these properties in segments and Liquid.
- 200
A successful request returns an empty object response.
- application/json
- 401
Unauthorized request. Make sure that you provided the right credentials.
{
"device": {
"id": "",
"platform": "ios",
"attributes": {
"app_identifier": "",
"app_version": "",
"cio_sdk_version": "",
"device_locale": "",
"device_model": "",
"device_os": "",
"push_enabled": "true",
"Custom Device Attributes": ""
},
"last_used": 1
}
}
A successful request returns an empty object response.