Palette Swapping in Allegro 5

I am trying to do a palette swap in Allegro 5. I have not found any way to do this from my research. So what I’ve thought of doing is to do it myself by setting individual pixels. I also haven’t found a way to do this but Allegro 5 does allow for getting pixels. Is there some way to set a pixel in Allegro 5?