Skip to main content

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?