Ping: Unknown Variable: False

I’m sure I’m doing something wrong but I’m trying to ping my device and via the API and I’m just getting back an unknown variable error:

curl https://api.particle.io/v1/devices/DEVICE_ID/ping?access_token=PARTICLE_TOKEN

(With correct values placed) returns:

{"ok":false,"error":"Unknown Variable: false"}

What am I doing wrong with this API?

Give that a shot :)?

1 Like

Lol wait what… it’s a put request? Wow I missed that… and that makes no sense.

"The HTTP PUT request method creates a new resource or replaces a representation of the target resource with the request payload."

I guess that was done so it didn’t conflict with variable… still…

Anyways thanks :slight_smile:

1 Like