Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Atsuya June 10, 2017

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
TAGS
AUG Leaders

Atlassian Community Events