I am using App Home Intents API: Intents API docs . i tried to edit a collection from my embedded app following the doc like this:
shopify.intents.invoke("edit:shopify/Collection", {
value: "gid://shopify/Collection/386027159734",
});
but i am getting error:
{ "code": "error", "message": "The intent was resolved with an invalid payload" }
another error is
outputSchema: {
type: "object",
required: ["id"],
properties: {
id: {
mapTo: "form_data",
type: "gid",
namespace: "shopify",
resource: "Collection"
}
}
}
result.errors[0]: {
code: "invalid_type",
expected: "string",
received: "undefined",
path: ["id"],
message: "Required"
}