Cannot clear a phone name

Trying to use the Admin API to allow our users to manage their phone names using the API, and it appears that once a name has been set for a phone that you can never clear it. Is that true? I’ve tried setting the name value to “” and " ", neither of which change the name. (Using the DUO::API perl module and calling the modify phone endpoint).

Thanks.

Hi @biggsb !

Via Postman, I was successful in clearing the name field using a space in the request parameter (no quotes). This will actually empty the field and not insert an actual space (or spaces). I am unsure how the Perl module would make a similar request (perhaps another Community member could chime in here), but the endpoint does support clearing the name field.

"POST https://■■■■■■■■■■■■■■■■■■■■■■■■■■■/admin/v1/phones/[phone_id]?name= "

Hope this helps!