late-motorcycle-62029
09/06/2024, 2:13 PMbumpy-butcher-41910
09/06/2024, 3:01 PMlate-motorcycle-62029
09/06/2024, 3:19 PMjavascript
const userId = event.userId
const url = `https://api.botpress.cloud/v1/chat/users/${userId}`
const config = {
method: 'put',
url: url,
headers: {
accept: 'application/json',
Authorization: 'Bearer bp_pat_ln26FIaVS9KZzVMIJn',
'x-integration-id': '87b01760-ede8-49d5-afc6-6afc0d0d1bdb',
'x-bot-id': 'bdfd7d9d-e20c-418a-a041-adb4ab2a9f04',
'content-type': 'application/json'
},
data: {
name: workflow.userNames
}
}
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data))
})
.catch((error) => {
console.error('error:', error)
})
Right here i have a code card here to update the User's Name. SImilarly i want to update the email and phone no. from the capture cards as well to the newly made tags for them to fetch them in a react app.late-motorcycle-62029
09/06/2024, 3:20 PMdazzling-car-78136
09/10/2024, 7:20 PM