[fix] API doesn't allow null value for some foreignkey that could be null