Use update_metadata() instead of update_post_meta().
- Settings -> Permalinks -> Common Setting -> Default
- Admin -> Sites -> (root site) Permalink Sturcture ->
/%category%/%post_id%/
Use update_metadata() instead of update_post_meta().
/%category%/%post_id%/