Create ATS ric using websocket on a specific BU/container

Dear developer community

I would like to know how can I structure the websocket message sent using ats_insert_s service to create a new ric on a specific BU/container rather than the default one, as it can be done with rtcontribute function.


MAny thanks for your assistance and help


Best Answer

  • @anass.yazane.1

    Thanks for reaching out to us.

    According to the ATS Installation Guide, you can specify the BU name and container name by using the X_BU and X_CONTAINER fields respectively.

    1675044054501.png

    The payload should look like this:

    {
    "Ack": true,
    "ID": 1,
    "Key": {
    "Name": "ATS_INSERT_S",
    "Service": "{{POST_SERVICE}}"
    },
    "Message": {

    "Fields": {
    "X_RIC_NAME": "{{POST_ITEM}}",
    "X_BU": "{{BU_NAME}}",
    "X_CONTAINER": "{{CONTAINER_NAME}}",

    "ASK": 451.60,
    "PRIMACT_1": 450.3,
    "SEC_ACT_1": 450.3,
    "DSPLY_NAME": "TEST RIC",
    "BID": 451.55
    },
    "ID": 0,
    "Solicited": false,
    "Type": "Refresh"
    },
    "PostID": 1,
    "Type": "Post"
    }

    I hope that this information is of help.

Answers