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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

27,454 views 26 12
Join discussion

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