After submitting, save the post's id returned by the api.