Skip to content

Instantly share code, notes, and snippets.

@morten
Created November 30, 2011 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morten/1407619 to your computer and use it in GitHub Desktop.
Save morten/1407619 to your computer and use it in GitHub Desktop.
POST /forums/{id}/entries.{format}
curl -v -u {email_address}:{password} https://{subdomain}.zendesk.com/forums/{id}/entries.json \
-H "Content-Type: application/json" -H "Accept: application/json" -X POST \
-d '{"entry": {"title": "My Entry", "body": "This is an entry. It belongs to a forum"}}'
Or pass the forum_id in the request body:
POST /entries.{format}
curl -v -u {email_address}:{password} https://{subdomain}.zendesk.com/entries.json \
-H "Content-Type: application/json" -H "Accept: application/json" -X POST \
-d '{"entry": {"title": "My Entry", "body": "This is an entry. It belongs to a forum", "forum_id": 123 }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment