Generic endpoint for adding a relation based on "main object" type and id and related object type and id.put http://localhost/api/v1/{object_type}/{object_id}/{relation_type}/{relation_id}