Blockchain workench - How to send array in Rest API?

auricio 21 Reputation points
2021-04-28T02:45:04.647+00:00

what format should i use to send an array parameter of the integer type in the POST /api/v1/contracts/:contractId/actions?

const requestBody = { "workflowFunctionID": 10, "workflowActionParameters": [ { "name": "variable", "value": ["1,2,3"], "workflowFunctionParameterId": 11 } ] }

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,202 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SanaCMSFT-8922 301 Reputation points
    2021-04-28T13:03:02.553+00:00

    Hi auricio-5666
    I am guessing that you are talking about the "value" under workflowActionParameters? Correct me if I am wrong.
    But assuming it to be that, as per this doc, it should be a string value.

    1 person found this answer helpful.
    0 comments No comments