UNPKG

customerio-gist-web

Version:

Build beautiful in-app flows with no code and deliver them instantly to your app. http://customer.io

17 lines (15 loc) 428 B
import { UserNetworkInstance } from '../services/network'; export async function updateMessage(queueId, updatedFields) { try { const response = await UserNetworkInstance()(`/api/v1/messages/${queueId}`, { method: 'PATCH', body: JSON.stringify(updatedFields), headers: { 'Content-Type': 'application/json' } }); return response; } catch (error) { return error.response; } }