Add an event with API

i can’t add an event with API !!! Any idea ?
i logged in as an andministrator .