changing device name (also on balena dashboard)

Hi,
on the manufacture process we would like to change the device name, so that we will control the names that appears in the dashboard.
i found BALENA_DEVICE_NAME_AT_INIT, how do i update it using the python SDK?
Couldnt find in the documentation, i’m sure there is a way.

Daniel.

Found an answer:
rename function in balena.models.device.rename

Thanks.

Hey there. Glad you found it.
For posterity, here is the docs https://www.balena.io/docs/reference/sdk/python-sdk/#function-renameuuid-new_name
Cheers