Skip to main content
Question

input field as list of integer


I hava a create action 

. i want to create a post request like following;

curl -X 'POST' \
  'https://xxx/api/v2/companies/search' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer XXX' \
  -H 'Content-Type: application/json' \
  -d '{
  "TagIds": [
    1,2,3
  ]
}'

 

My input field need to be list of integer. i try to use like following.

inputFields: [
        {
          key: 'TagIds',
          children: [
            {
              key: 'tag',
              type: 'string'
            },
          ],
        }
      ],

 

but i get this error; "Invalid Input. Either required parameters are missing or parameters are not in expected formats."

my create post like this;

const response = await z.request({
      method: 'POST',
      url: '{{bundle.authData.baseurl}}/api/v2/companies/search',
      body: {
        TagIds: bundle.inputData.TagIds // json by default
      }
    });
    return response.data

 

how can i fix this?

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.