Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save laszlomiklosik/825711ccadca4035dce83c08c81a6f1b to your computer and use it in GitHub Desktop.
Save laszlomiklosik/825711ccadca4035dce83c08c81a6f1b to your computer and use it in GitHub Desktop.
curl request with inline multiline JSON payload
curl -X PATCH http://localhost:8080/Users/7234e4cd-eb7f-4a96-953e-3bd11439efcf -H 'Content-Type: application/json' -d @- <<BODY
{
"emails": [
"a@b.com",
"b@c.com"
]
}
BODY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment