Implement post as upsert.