I have Data Like This
[292929282,372828272,9822922,82729292]
Now I want To Send One By One Value To API To get response of that specific value here what I have Try. please Tell me what is wrong Because I am not getting any data in response
for (let i = 0; i < getBrandNameById2.length; i++) {
fetch('URL', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${accessToken}`,
},
body:
JSON.stringify({
brandid: getBrandNameById2[i],
}),
})