media api for roles set up