We're using a DataCollection type here in the data object definition. It would be best always to use a DataCollection type when nesting a collection of data objects. The package requires this for internal state management.
When a resource is being returned from a controller, the status code of the response will automatically be set to 201 CREATED when Laravel data detectes that the request's method is POST. In all other cases, 200 OK will be returned.