Update API, add rule