Changing the type of a media type to "webhook" does not require the mandatory script parameter to be specified

XMLWordPrintable

    • S26-W14/15

      Steps to reproduce:

      1. Create a media type with the "SMS" type.
      2. Perform a similar API request:
        {
            "jsonrpc": "2.0",
            "method": "mediatype.update",
            "params": [
                {
                    "mediatypeid": 102,
                    "type": 4
                }
            ],
            "id": 1
        }
        

      Result:

      {
          "jsonrpc": "2.0",
          "result": {
              "mediatypeids": [
                  "102"
              ]
          },
          "id": 1
      }
      

      Expected:

      {
          "jsonrpc": "2.0",
          "error": {
              "code": -32602,
              "message": "Invalid params.",
              "data": "Invalid parameter \"/1/script\": cannot be empty."
          },
          "id": 1
      }
      

            Assignee:
            Andrejs Griščenko
            Reporter:
            Andrejs Griščenko
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: