Hello,
This is because you can define multiple phones for a single user. The user can then decide which one to use (e.g. a WebRTC endpoint, a SIP phone, a Remote phone, ...).
In order to assign a default phone to the user, you can use the following endpoint: PUT /api/v2/users/{userId}/station/defaultstation/{stationId}
I've used the following endpoint, GET /api/v2/stations, using a filter on the phone name ("name" query parameter), to get the stationId.
Although my lines seem to have the same id, I think it is safer to get the station. I don't have a complex test environment - just a couple of webrtc phones and remote phones. As the PUT endpoint refers to a stationId, better to get the id from the GET /api/v2/stations endpoint (in case that changes or varies in more complex environments).
Regards,
------------------------------
Jerome Saint-Marc
Senior Development Support Engineer
------------------------------