[WIP] api v2 environments - CRUD actions