PUT / DELETE / HEAD / PATCH
  • 30 Nov 2021
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

PUT / DELETE / HEAD / PATCH

  • Dark
    Light
  • PDF

Data for example:

  • URL : http://my.api.com/getData
  • input parameters - "param1":"Value", "param2":"Value"

api_put

Request from process to API

  • http://my.api.com/getData

or

  • http://my.api.com/getData?conv_signature={{conv_signature}}&conv_time={{conv_time}}&conv_id={{conv_id}}

conv_signature, conv_time and conv_id can be added to URL and used for verification of access to API.

conv_signature is formed according to formula, where API_SECRET - is a key which is generated in the node with API logic.

Request body

{
    "param1":"Value",
    "param2":"Value"
}

or

{
    "param1":"Value",
    "param2":"Value",
    "sys":
    {
        "ref":"130605",
        "obj_id":"53c29d228245aa58be013acf",
        "conv_id":672,
        "node_id":"53c01daa8245aa58be00e889"
    }
}

If the request succeeds, it will return HTTP status code 200 + any valid json, which is automatically added to the task (to data object).

{
    "answerParam":"ok"
}

If a request fails, HTTP status code 500 will be returned:

{
    "textError":"Text error",
    "codeError":"Code Error"
}

Was this article helpful?

What's Next