Skip to content

How I can use PUT request via HTTP #14

Answered by sbender9
norbert-walter asked this question in Q&A
Discussion options

You must be logged in to vote

Here's a node-red flow that supports POSTing deltas:

[{"id":"21907fdb.1a9ee","type":"signalk-send-delta","z":"66b7c773.3a4ad","name":"","x":600,"y":480,"wires":[]},{"id":"3bfe9946.abdebe","type":"http in","z":"66b7c773.3a4ad","name":"","url":"/delta","method":"post","upload":false,"swaggerDoc":"","x":240,"y":480,"wires":[["21907fdb.1a9ee","8c75c35e.7f0d78"]]},{"id":"8c75c35e.7f0d78","type":"http response","z":"66b7c773.3a4ad","name":"","statusCode":"200","headers":{},"x":580,"y":540,"wires":[]}]

Then you can use:

curl -X POST -H "Authorization: JWT eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6InNiZW5kZXIiLCJpYXQiOjE1NjMyMjk0MDIsImV4cCI6MTU5NDc4NzAwMn0.DE-k3hQf4mAvqR6RYSwSxSV" -H "Content…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@norbert-walter
Comment options

@sbender9
Comment options

@norbert-walter
Comment options

Answer selected by sbender9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants