I'm using watson-developer-cloud with nodejs and trying to delete more than intent
with the following:
let IntentName = req.body.intentName;
var params = {
workspace_id: workspaceId,
intent: // delete more than on intent here
};
conversation.deleteIntent(params, function(err, response) {
if (err) {
console.error(err);
} else {
console.log(JSON.stringify(response, null, 2));
}
});
how can i delete more than one?
One option you can do is download the whole workspace and work on the JSON object directly. Then when completed, send the whole updated block back to your workspace in one go.
This means less calls, lowering your chances of a rate limit kicking in.