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

**URL:** <https://community.ofelia.com/t/create-update-or-delete-cases-groups-users-roles-api-rest/11370>\
**Category:** Q&A\
**Created:** [5 October 2022 12:48 UTC](https://community.ofelia.com/t/create-update-or-delete-cases-groups-users-roles-api-rest/11370 "2022-10-05T12:48:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![weglineduardo](https://avatars.discourse-cdn.com/v4/letter/w/85f322/32.png) [@weglineduardo](https://community.ofelia.com/u/weglineduardo)\
**Post date:** [5 October 2022 12:48 UTC](https://community.ofelia.com/t/create-update-or-delete-cases-groups-users-roles-api-rest/11370/1 "2022-10-05T12:48:00Z")

</div>

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({  
&nbsp; "icon": "",  
&nbsp; "name": "manager",  
&nbsp; "displayName": "department manager",  
&nbsp; "description": "manager of the department"  
});

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

axios(config)  
.then(function (response) {  
&nbsp; console.log(JSON.stringify(response.data));  
})  
.catch(function (error) {  
&nbsp; 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
