Create Role
Menambahkan Role sebagai data master.
URI
POST/api/v1/roles
Security
Type: Bearer Token
Body Parameter
| Name | Type | Field | Description |
|---|---|---|---|
name | string | required | Nama Role. |
description | string | optional | Deskripsi dari Role. |
Examples
- Payload
- Response
{
"name": "Admin",
"description": "role for system administrator"
}
{
"message": "Data berhasil tersimpan",
"data": null
}