def METHOD_NAME(project_id):
    req = request.get_json(force=True)
    logger.debug("request data: {}".format(req))
    metadata = req.get("metadata")
    logger.debug("original data: {}".format(metadata))
    if metadata is not None:
        try:
            try:
                doc = ROParser(metadata)
                docexpanded = doc.getElement(doc.rootIdentifier, expand=True, clean=False)
                logger.debug(f"doc: {docexpanded}")
                metadata = zenodo(doc.getElement(
                    doc.rootIdentifier, expand=True, clean=False))
            except:
                metadata = zenodo(metadata)
        except Exception as e:
            logger.debug("Error ROParser")
            logger.error(e, exc_info=True)
    logger.debug("transformed data: {}".format(metadata))
    depoResponse = g.zenodo.change_metadata_in_deposition_internal(
        deposition_id=int(project_id), metadata=metadata, return_response=True
    )
    if depoResponse.status_code == 200:
        output = depoResponse.json()
        logger.debug("output: {}".format(output))
        try:
            output["metadata"] = to_jsonld(output["metadata"])
        except Exception as e:
            logger.error(e, exc_info=True)
        logger.debug("finished output: {}".format(output))
        return jsonify(output["metadata"])
    abort(depoResponse.status_code)