app/controllers/api/v2/node/containers_controller.rb
# POST /mark_deleted
# Mark container as deleted
POST /mark_deleted
Mark container as deleted
POST / mark_deleted Mark container as deleted
def mark_deleted
    @container = current_node.containers.exists.find_by(
      hostname: params[:hostname],
      status: 'SCHEDULE_DELETION'
    )
    @container.update_status('DELETED')
    render json: ::Api::V2::Node::ContainerSerializer.new(@container).to_h
  end
def mark_deleted @container = current_node . containers . exists . find_by ( hostname : params [ :hostname ] , status : 'SCHEDULE_DELETION' ) @container . update_status ( 'DELETED' ) render json : :: Api :: V2 :: Node :: ContainerSerializer . new ( @container ) . to_h end
POST /mark_deleted
Mark container as deleted
POST / mark_deleted Mark container as deleted