hello bhanuc99794808,
If you could provide more details regarding what are you trying to accomplish that would help us provide more concrete steps.
Regarding your question, at.js supports mboxUpdate(), however to make sure it behaves as expected, just as with mbox.js, you have to make sure that you first call mboxCreate() or mboxDefine() followed by mboxUpdate().
If you try to move away from old mbox APIs and you want to use the new at.js APIs like getOffer() and applyfOffer(), then there are a few things that you should be aware of:
getOffer() - is responsible for sending data like mbox or profile parameters to Target edge and receiving offers. All the getOffer() options are listed here: adobe.target.getOffer(options)
applyOffer() - is responsible for rendering the offers received from Target. All the applyOffer() options are listed here: adobe.target.applyOffer(options)
If you try to execute a custom global mbox request and you want to use additional parameters, here is how you can do it:
<script>
adobe.target.getOffer({
"mbox": "target-global-mbox",
"params": {
"a": 1,
"b": 2
},
"success": function(offers) {
adobe.target.applyOffer( {
"mbox": "target-global-mbox",
"offer": offers
});
},
"error": function(status, error) {
console.log('Request failed', status, error);
}
});
</script>
NOTE: the params option, which you can use to send additional parameters to Target edge.
I hope this helps.