Allow API edit_product method to update post_name (slug)

Closes #6601