XF 2.2 API issue creating new threads

Mike Fara

Active member
I am wondering if anyone has experience creating new threads with the API.

I seem to have a strange error even though the correct information is passed to the API, unless something is off.

Code:
{
    "errors": [
        {
            "code": "required_input_missing",
            "message": "Required input missing: node_id, title, message",
            "params": {
                "missing": [
                    "node_id",
                    "title",
                    "message"
                ]
            }
        }
    ]
}

And what is sent:

Code:
{
    "forum_id": 302,
    "title": "Test thread",
    "message": "This is a test thread."
}

This is in the user context with the API key.
 
Have switched back and forth between the two, it seems I am having other issues:
Code:
"domain": "a.com",
  "method": "post",
  "path": "/threads",
  "operation": "createThread",
  "operation_hash": "f4e452e654e2b4bae8fca86d7e05703092e8531d",
  "is_consequential": true,
  "params": {
    "node_id": 302,
    "title": "Test thread",
    "message": "Test thread"
  }
}
Code:
{
  "response_data": {
    "errors": [
      {
        "code": "required_input_missing",
        "message": "Required input missing: node_id, title, message",
        "params": {
          "missing": [
            "node_id",
            "title",
            "message"
          ]
        }
Hmm.... I am still not sure what the issue may be, am I passing it wrong to the endpoint
 
Back
Top Bottom