Yes, I believe it was a coup attempt organized by the military forces opposed to Erdogan/AK Party.

No, I believe it was orchestrated by Erdogan/AK Parti to gain absolute power and to eliminate the opposition.