I'm getting "title is required" with bitbucket POST issue example

Hello,

 

So I'm trying to POST an issue with Postman for some project I'm working on. But the thing is, although my authorization is alright, no matter what I put in the body, I get the following error :

<ul class="errorlist"><li>title<ul class="errorlist"><li>This field is required.</li></ul></li></ul>

I'm using this endpoint :

https://api.bitbucket.org/1.0/repositories/MyName/MyRepo/issues

And doing a GET on it is giving me my issues.

I used the official documentation with its example, available here : POST an issue with the snippet they give :

{
    "status": "new",
    "priority": "trivial",
    "title": "This\\ is\\ a title",
    "reported_by": {
        "username": "tutorials",
        "first_name": "",
        "last_name": "",
        "is_team": false,
        "avatar": "https://secure.gravatar.com/avatar/0bc5bd490000b8e63c35c0f54e667b9e?d=identicon&s=32",
        "resource_uri": "/1.0/users/tutorials"
    },
    "utc_last_updated": "2012-07-29 02:35:38+00:00",
    "comment_count": 0,
    "metadata": {
        "kind": "bug",
        "version": null,
        "component": null,
        "milestone": null
    },
    "content": "This is the content",
    "created_on": "2012-07-29 04:35:38",
    "local_id": 3,
    "follower_count": 0,
    "utc_created_on": "2012-07-29 02:35:38+00:00",
    "resource_uri": "/1.0/repositories/tutorials/mydvcsproject/issues/3",
    "is_spam": false
}

So, I'm posting this with my authorization and content-type, but well, the error pops up...

 

What could possibly be wrong ?

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

434 views 6 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you