Hi.
addNesteGroup requires me to add “group_id_to_add” parameter into body of the request I am sending.
My preset for the fetchRequest js looks like this:
const url = `https://${extension}/api/groups/`{group_id}/nested`
const options = {
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`
},
body: JSON.stringify({ "group_id_to_add": [ group_id_1, group_id_2 ] })
What I receive is message saying: ““value” must be an array”.
What am I missing?
Thank you!