Not sure though but can you try passing the payload this way
var payload = {
"resource": [
{
"deviceId": "d7d8ede787de78d7"
}
]
};
Not sure though but can you try passing the payload this way
var payload = {
"resource": [
{
"deviceId": "d7d8ede787de78d7"
}
]
};