
The JSON API specification states that all resources must support direct modification of resource relationships by providing only the definition for a particular relationship type to a /:type/:id/relationships/:type endpoint. The relevant part of the JSON API specification: http://jsonapi.org/format/#crud-updating-to-many-relationships