def add_highlight(self, bounding_boxes, color):
    '\n        Adds a highlight to this file.\n\n        :param bounding_boxes: the area the highlight covers on the file.\n        :param color: the color of the highlight.\n        :return: a :class:`Annotation <yandeley.models.annotations.Annotation>`.\n        '
    annotation = {'document_id': self.document().id, 'filehash': self.filehash, 'positions': [box.json for box in bounding_boxes], 'color': color.json}
    rsp = self.session.post('/annotations/', data=json.dumps(annotation), headers={'Accept': Annotation.content_type, 'Content-Type': Annotation.content_type})
    return Annotation(self.session, rsp.json())
Adds a highlight to this file.

:param bounding_boxes: the area the highlight covers on the file.
:param color: the color of the highlight.
:return: a :class:`Annotation <yandeley.models.annotations.Annotation>`.
def add_highlight(self, bounding_boxes, color):
    '\n        Adds a highlight to this file.\n\n        :param bounding_boxes: the area the highlight covers on the file.\n        :param color: the color of the highlight.\n        :return: a :class:`Annotation <yandeley.models.annotations.Annotation>`.\n        '
    annotation = {'document_id': self.document().id, 'filehash': self.filehash, 'positions': [box.json for box in bounding_boxes], 'color': color.json}
    rsp = self.session.post('/annotations/', data=json.dumps(annotation), headers={'Accept': Annotation.content_type, 'Content-Type': Annotation.content_type})
    return Annotation(self.session, rsp.json())