prozorro_sale.jobber.api.handlers._common

    # TODO: remove this function when nested digitalSignature will be implemented
    data = await request.json()
    utils.check_forbidden_fields(('id',), data)
    async with request.app.db.read_and_update(obj_id, object_type) as _obj:
        doc = _obj.Cancellation.Doc(data, role='owner')
        doc_info = await _obj.create_cancellation_document(cancellation_id, doc, request._context)
    return web.json_response(doc_info, status=201, dumps=ujson.dumps)


async def download_cancellation_document(object_type, request, obj_id, cancellation_id, doc_id):
    obj = await request.app.db.read(obj_id, object_type)