import Honcho from 'honcho-ai';
const client = new Honcho({
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});
async function main() {
const metamessage = await client.apps.users.metamessages.update('app_id', 'user_id', 'metamessage_id');
console.log(metamessage.id);
}
main();
Update a metamessage’s metadata, type, or relationships
PUT
/
v1
/
apps
/
{app_id}
/
users
/
{user_id}
/
metamessages
/
{metamessage_id}
JavaScript
import Honcho from 'honcho-ai';
const client = new Honcho({
apiKey: process.env['HONCHO_API_KEY'], // This is the default and can be omitted
});
async function main() {
const metamessage = await client.apps.users.metamessages.update('app_id', 'user_id', 'metamessage_id');
console.log(metamessage.id);
}
main();