/api/perfil/:id
Permanently removes a profile and all its associated permisos_perfil records. Before deleting, the endpoint checks whether any users are assigned to this profile. If any users are found, the operation is rejected with a 409 Conflict error.
Path parameters
number
required
Primary key of the profile to delete.
Response
boolean
required
true when the profile and its permissions are deleted successfully.string
required
Confirmation string. Always
"Perfil eliminado correctamente" on success.Error responses
Examples
Success response
200
Error response (409)
409