Authorization: Bearer ********************{
"user_id": 2,
"role_ids": [
3,
4
]
}{
"status": "success",
"message": "Role assigned to user successfully",
"data": {
"id": 1,
"name": "Super Admin",
"email": "superadmin@example.com",
"email_verified_at": "2025-07-31T05:54:41.000000Z",
"created_at": "2025-07-31T05:54:41.000000Z",
"updated_at": "2025-07-31T05:54:41.000000Z",
"roles": [
{
"id": 1,
"name": "Super Admin",
"guard_name": "web",
"created_at": "2025-07-31T17:23:13.000000Z",
"updated_at": "2025-07-31T17:23:13.000000Z",
"pivot": {
"model_type": "App\\Models\\User",
"model_id": 1,
"role_id": 1
}
}
]
}
}