For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
119 6 6 17

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


#technologywebsocketsATScontainer
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
81.4k 267 53 76

@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.


1675044054501.png (11.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
119 6 6 17
dear @Jirapongse it works perfectly, many thanks for your help
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.