Which parameters are necessary to reply to a topic/post via the API?

(Felipe) #1

I have no trouble to create a topic, but i can’t create a reply to topic or post.
I’m using these parameters to reply:


and, of course: api_url, api_key, api_username.

Thanks for your attemption.

(Khoa Nguyen) #2

I think you’re missing catergory_id.
I am working with Discourse PHP API

(Felipe) #3

i’m using JAVA API unsucess:

    parameters = new HashMap<String, String>();
    parameters.put("topic_id", "18");
    parameters.put("username", user);
    parameters.put("raw", "Test reply sucess!!!!");
    //parameters.put("reply_to_post_number", "1");
    parameters.put("category", "5");
    parameters.put("archetype", "regular");


(Khoa Nguyen) #4

Hum. I don’t know. You maybe can ask the Java API programmer

(UserXtreamz) #5

What is the API URL your using to create new topic?