General Discussion

Pentaho Rest Client: need to upload a json body with DELETE method

  • 1.  Pentaho Rest Client: need to upload a json body with DELETE method

    Posted 9 days ago
    Hi
    i have this API that ask me to upload a json during DELETE operation.

    This the extract from the API:

    DELETE /:resource_type/:resource_id/relationships/attachments

    Delete multiple attachments.

    Deletes one or more specified attachments. Returns the deleted attachments and a 200 status code if successful.

    Below is a sample request body with a JSON array to delete multiple objects:

    "data": [
      {
        "type": "attachments",
        "attributes": {
          "id": 2
        }
      },
      {
        "type": "attachments",
        "attributes": {
          "id": 4
        }
      }
    ]



    How can I do that with the REST client step? I cannot select the body field if I select DELETE method:



    Any hint?

    ------------------------------
    Federico Boldori
    Systems Engineer
    Monitoro sRL
    ------------------------------