Ad Widget

Collapse

Acknowledge via API - invalid response -32600

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahahum
    Member
    • Jan 2009
    • 79

    #1

    Acknowledge via API - invalid response -32600

    I'm trying to acknowledge triggers via the API with a 3rd party.

    I can successfully login, retrieve my token, but when I post back with the following code, I get -32600 Invalid Response. data: JSON-RPC version is not specified.

    My post:
    Code:
    {
        "jsonrpc": "2.0",
        "method": "event.acknowledge",
        "params": {
            "eventids": "2412321",
            "message": "Acknowledged by Username"
        },
        "id": 1,
        "auth": <authkey>
    }
    The response I get is:
    Code:
    {
      "jsonrpc": "2.0",
      "error": {
        "code": -32600,
        "message": "Invalid Request.",
        "data": "JSON-rpc version is not specified."
      },
      "id": null
    }
    I'm unsure why I get JSON-rpc version not specified when I am clearly specifying it in the initial post.

    Any help here?

    Thank you!
  • ahahum
    Member
    • Jan 2009
    • 79

    #2
    Auth key didn't have quotes around it, resolved the issue.

    I have a new issue now where the frontend "Status of Triggers" page does not show the trigger as acknowledged. If you go into view the event details it will show you that it is in fact acknowledged.

    I'll post a new post regarding that issue.

    Comment

    Working...