Skip to content
Snippets Groups Projects

Call PartialUpdateElement but correct payload

Merged Yoann Schneider requested to merge call-update-element into master
All threads resolved!
1 file
+ 11
4
Compare changes
  • Side-by-side
  • Inline
@@ -283,10 +283,17 @@ class ElementMixin(object):
Updates an element through the API.
:param element: The element to update.
:param type: Optional new slug type of the element.
:param name: Optional new name of the element.
:param polygon: Optional new polygon of the element.
:param confidence: Optional new confidence score, between 0.0 and 1.0.
:param type: Slug type of the element.
:param name: Name of the element.
:param **kwargs:
* *polygon* (``list``): Optional polygon for this element
* *confidence* (``float``): Optional confidence score of this element
* *rotation_angle* (``int``): Optional rotation angle of this element
* *mirrored* (``bool``): Optional mirror status of this element
* *image* (``UUID``): Optional ID of the image of this element
:returns: A dict from the ``UpdateElement`` API endpoint,
"""
assert element and isinstance(
Loading