'Store variables data to DB'

@api.response(201, u'Successfully    updated    variables    file')
@api.validate(empty_response)
@api.doc(description=u'Note    that    editing    variables    may    not    be    persistent,    depending    on    user    config')
def put(self, session=None):

    data = request.json
    variables_to_db(data)
    self.manager.validate_config()
    rsp = jsonify(variables_from_db())
    rsp.status_code = 201
    return rsp
