API Error device-keys

I have created a new device using the API /api/devices. All worked ok. Now I’m trying to add the nwkKey using the API and getting this error response. Not sure what’s causing this?

That could mean that the DevEUI you have entered does not exist.