Hi,
this previous post might help you here: Device availability status not changing when measurments created using sdk api - #2 by Stefan_Witschel
When you’re adding the X-Cumulocity-Application-Key
HTTP header to the requests of your microservice, they are ignored for the c8y_Availability
status and time.