API ResourceFeedback "Required parameter missing or invalid"

Hi @MarkNZL ,

With the looks on it, you do not have the session variable. You are talking about a new ResourceFeedback or am I missing some of your code. See how they define the test_session variable here.

import {ResourceFeedback} from '@shopify/shopify-api/dist/rest-resources/2022-04/index.js';

const test_session = await Shopify.Utils.loadCurrentSession(request, response);
const resource_feedback = new ResourceFeedback({session: test_session});

resource_feedback.state = "requires_action";
resource_feedback.messages = [
  "is not connected. Connect your account to use this sales channel."
];
resource_feedback.feedback_generated_at = "2022-04-05T17:19:44.396169Z";
await resource_feedback.save({});

Also, try to remove the comma after the session object. Maybe just me, but I always have problems with objects when there is a comma after the last variable

const resource_feedback = new ResourceFeedback({
    session: session
});