Método addUsers num grupo

Fiz um teste pelo console do navegador com o código abaixo, retornou normal, faça um testa aí:

fetch('/api/public/2.0/groups/addUsers/avalestsp_admins', {
    method: 'POST',
    headers: {"Content-type": "application/json;charset=UTF-8"},
    body: JSON.stringify(['afer'])
})
.then(response => response.json())
.then(json => console.log(json))
.catch(err => console.error(err));
2 curtidas