API to update an element

@SonNguyen have you checked those ?