Update Role
Update data Role.
URI
PATCH/api/v1/roles/{id}
Security
Type: Bearer Token
Path Parameter
| Name | Type | Field | Description |
|---|---|---|---|
id | string | required | Berisi ID spesifik dari data Role. |
Body Parameter
| Name | Type | Field | Description |
|---|---|---|---|
name | string | required | Nama Role. |
description | string | optional | Deskripsi dari Role. |
Examples
- URI
- Payload
- Response
`{base_url}/api/v1/roles/1`
{
"name": "Admin",
"description": "role for system administrator"
}
{
"message": "Data berhasil tersimpan",
"data": null
}