API: "category_id", "can't be blank"

crazyskeggy's Avatar

crazyskeggy

29 Jun, 2014 06:25 PM

I was looking through your API documentation today, trying to learn how it works, and used Postman on Chrome to make test requests.

The URL I used was: http://api.tenderapp.com/adblock/categories/other/discussions

The HTTP headers were:

Accept: application/vnd.tender-v1+json
X-Tender-Auth: <my ID>
Content-Type: application/json

The POST data was:

title: Test
public: false
author_email: <my email - not used on Tender>
author_name: crazyskeggy
body: testing API

And I just got the following result:

[
-[
"category_id"
"can't be blank"
]
]

I've been trying to get this working, but nothing I do makes it work. I have tried using raw text (JSON formatted) instead of HTTP form key-value pairs, adding category_id to every possible place in the request,. and nothing has happened. Surely the category ID is other from the URL?

  1. 1 Posted by Nicole on 30 Jun, 2014 05:20 AM

    Nicole's Avatar

    The category_id for that would be 75678. Try that and it should work for you.

    Thanks,
    Nicole

  2. 2 Posted by crazyskeggy on 30 Jun, 2014 02:21 PM

    crazyskeggy's Avatar

    Where can I find it for other categories? I was just using that as a
    test, so I want to know if I can get it from anywhere. I assumed the
    category ID was the same as you use when you are making a URL for the
    new discussion page.

  3. 3 Posted by Nicole on 30 Jun, 2014 03:30 PM

    Nicole's Avatar

    You can find the numeral ID for the categories here - http://support.getadblock.com/dashboard/categories.

    Thanks,
    Nicole

  4. 4 Posted by crazyskeggy on 30 Jun, 2014 03:50 PM

    crazyskeggy's Avatar

    Thanks!

  5. crazyskeggy closed this discussion on 30 Jun, 2014 03:50 PM.

Discussions are closed to public comments.
If you need help with Tender please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac