question

auricio-5666 avatar image
0 Votes"
auricio-5666 asked SanaCMSFT-8922 answered

Blockchain workench - How to send array in Rest API?

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 } ] }





azure-blockchain-workbench
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SanaCMSFT-8922 avatar image
1 Vote"
SanaCMSFT-8922 answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.