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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,968 views 1 5
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