change state requirements api call from post to get