Set resource key in serializer

That's broken.