finish edit post endpoint