Create, update or delete cases, groups, users, roles....Api rest

Hello everyone
I am using the Bonita rest api to create, update or delete cases, groups, users, roles or tasks and for all cases the rest api returns a 401
I use postman to make the requests according to the pretty documentation
for example to create a group
var axios = require('axios');
var data = JSON.stringify({
  "icon": "",
  "name": "manager",
  "displayName": "department manager",
  "description": "manager of the department"
});

var config = {
  method: 'post',
  url: 'http://localhost:8080/bonita/API/identity/role/',
  headers: {
    'Content-Type': 'application/json',
    'Cookie': 'pretty.tenant=1; BOS_Locale=en; JSESSIONID=A0FFC8FC8B25BE4E6B8FC292E8361795; X-Pretty-API-Token=4a76556a-1126-4d3c-bd97-c9bc51e8fa69'
  },
  date : date
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

I am using walter bates which has all the privileges according to the documentation of Bonita

some help ? . I read several here with the same problem but the documentation to which they are sent no longer exists because they happened in 2014 or 2015