update api post