Feature/api create and delete relationship

I don't understand why you remove ``"id"`` and null values here. Could you please enlighten me?