update status for api call