def update_batch(self, **kwargs):
        """
        Simplistic batch update operation implemented in terms of `replace()`.

        Assumes that:

         - Request and response schemas contains lists of items.
         - Request items define a primary key identifier
         - The entire batch succeeds or fails together.

        """
        items = kwargs.pop("items")

        def transform(item):
            """
            Transform the dictionary expected for replace (which uses the URI path's id)
            into the resource expected from individual resources (which uses plain id).

            """
            item[self.identifier_key] = item.pop("id")
            return item

        return dict(
            items=[
                self.replace(**transform(item))
                for item in items
            ],
        )
Simplistic batch update operation implemented in terms of `replace()`.

        Assumes that:

         - Request and response schemas contains lists of items.
         - Request items define a primary key identifier
         - The entire batch succeeds or fails together.