DocAssiduites/docs/samples/sample_role-edit.json.md

33 lines
523 B
Markdown
Raw Normal View History

2022-08-13 19:29:08 +02:00
### role-edit
#### POST /role/customRole/edit
> `Content-Type: application/json`
>
> `{ "name" : "LaveurDeVitres", "permissions" : [ "ScoView", "APIView" ] }`
```json
{
"id": 13,
"role_name": "customRole",
"permissions": [
"ScoView"
]
}
```
#### POST /role/customRole/edit
> `Content-Type: application/json`
>
> `{ "name" : "LaveurDeVitres", "permissions" : [ "ScoView", "APIView" ] }`
```json
{
"id": 13,
"role_name": "customRole",
"permissions": [
"ScoView"
]
}
```