How can I create an issue via the API?

Hey there,

I’m trying to create a simple issue via the REST API 2.0. Searching the docs I got the following help:{username}/{repo_slug}/issues

I’m using basic authentication for testing reasons. The Post is fired via fiddler with the following RequestBody:

   "title" : "test"

To the following URL:

this is the error message from the api:

{"type": "error", "error": {"fields": {"title": "required key not provided"}, "message": "Bad request"}}

If I understand that message correctly the API is missing the “title field” in my data json.

Did I missed something?

1 Like

I was able to post an issue to your repo. Perhaps you were missing the header for Content-Type as application/json?

Thank you, that’s the solution