@api_config(route_name='api.annotation', request_method='PUT', permission='update')
def update(annotation, request):
    schema = schemas.LegacyUpdateAnnotationSchema(request,
                                                  annotation=annotation)
    appstruct = schema.validate(_json_payload(request))
    annotation = storage.update_annotation(request, annotation.id, appstruct)

    _publish_annotation_event(request, annotation, 'update')

    presenter = AnnotationJSONPresenter(request, annotation)
    return presenter.asdict()
Returns a portion of the sentence from word start index to word stop index.
dataset/ETHPy150Open hypothesis/h/h/api/views.py/update--crossover with--dataset/ETHPy150Open markuskiller/textblob-de/textblob_de/ext/_pattern/text/tree.py/Sentence.slice