def put(self, id):
        """put."""

        project = db.session.query(Project).filter_by(id=id).first()

        if project is None:
            return jsonify({
                'project': None,
                'message': 'No interface defined for URL.'
            }), 404

        request_project = request.get_json().get('project')
        project_name = request_project.get('name', None)

        if project_name is not None:
            project.name = project_name

        db.session.add(project)
        db.session.commit()

        return jsonify({
            'project': project.serialize
        })
put.