Skip to content

Instantly share code, notes, and snippets.

@leifg
Created November 28, 2012 22:08
Show Gist options
  • Save leifg/4165020 to your computer and use it in GitHub Desktop.
Save leifg/4165020 to your computer and use it in GitHub Desktop.
Second Step of ADN machine only post
curl -H 'Authorization: Bearer $ADN_TOKEN' \
-d '{"machine_only":true,"annotations":[{"type":"bla","value":"blub"}]}' \
https://alpha-api.app.net/stream/0/posts
--->
{
"meta": {
"code": 400,
"error_id": "b56ff451b98446ef803ac48325d5bb17$5f7e8eac12afb013ab7205b2ec9aaecc",
"error_message": "Bad Request: 'text': Required for non machine_only posts."
}
}%
@mdornseif
Copy link

change https://alpha-api.app.net/stream/0/posts into https://alpha-api.app.net/stream/0/posts?include_machine=1. I got bitten by that, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment