var config = {
method: 'post',
url: 'https://api-{MY-APP-ID}.sendbird.com/v3/migration/18374',
headers: {
'Content-Type': 'application/json',
'API-Token': {MY-API-TOKEN},
},
data : {
"messages":data,
"update_read_ts":false
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
I am trying to migrate my old data to use sendbird now.
While trying to migrate in a format that sendbird doc says, I faced an error saying that
data: {
message: ‘Not authorized. “Migration is not allowed.”.’,
code: 400108,
error: true
}
Any helps can I get?