Fixed layer POST, fixed parameter mix ups, naming problems and removed unused metadata like isModel and workspace from layers.