Authorization: Bearer ********************
{
"id": 0,
"c_roles": [
0
]
}
curl --location --request PUT 'http://127.0.0.1:4300/role/set_add_child_role' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 0,
"c_roles": [
0
]
}'
{
"code": 0,
"data": {
"id": 0,
"username": "string",
"status": 0,
"avatar": "string",
"title": "string",
"created_at": "string",
"updated_at": "string",
"deleted_at": null,
"roles": [
{
"id": 0,
"role_name": "string",
"role_description": "string",
"p_id": 0,
"created_at": "string",
"updated_at": "string",
"deleted_at": null
}
]
},
"message": "string"
}