Sign in

Add or update device

documented

Add or update a device for a customer profile.

PUT /api/v1/customers/{identifier}/devicesPeopleno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://track.customer.io/api/v1/customers/{{$identifier}}/devices" \
  -X PUT \
  -u "{{$site_id}}:{{CUSTOMER_API_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"device": {"token": "{{$token}}", "last_used": {{$last_used}}, "platform": "{{$platform}}", "attributes": {"device_os": "{{$device_os}}","device_model": "{{$device_model}}","app_version": "{{$app_version}}","cio_sdk_version": "{{$cio_sdk_version}}","device_locale": "{{$device_locale}}"}}}'