Skip to content

Instantly share code, notes, and snippets.

@dwblair

dwblair/putscript.sh

Created Oct 21, 2020
Embed
What would you like to do?
#!/bin/bash
curl --location --request PUT 'http://127.0.0.1:3000/api/drives/62cc20d3974887a364a63817ef8a4367c21f5a6b275d1227c6390521e1acc0ca' --header 'Authorization: 15a74c67d6134a40b5d101b17ec6c5943b9a63a70b233979d94804a2bd776ac5' --header 'Content-Type: application/json' --data-raw '{"deviceId":"sensor1","fields":{"temp":28, "humid":18}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment