Update a scenario

This resource is used to update an existing scenario

URL: baseURL/scenario/{id}

Method: PUT

Headers:

Content-Type: application/json
principalId:{accountID}

Example Request:

{
    "settings": {
        "name": "string",
        "sticky_channel": true,
        "sticky_channel_ttl": 7
    },
    "pin_options": {
        "ttl": 320
    },
    "security": {
        "rate_limiting": {
            "ip": true,
            "destination_number": true,
            "interval": 3,
            "max_attempts": 3
        },
        "block_scores": [
            "high risk"
        ]
    },
    "channels": [
        {
            "channel": "sms",
            "from": "Verify",
            "message": "Your PIN is @@pin",
            "flash": false,
            "transcode": true,
            "order": 1,
            "next_event_in": 37
        },
        {
            "channel": "viber",
            "message": "Dear customer your ACME inc PIN is @@pin",
            "sender_info_tracking_id": "0094d198-4dd2-4fb5-b451-d46aca191b27",
            "order": 2,
            "next_event_in": 43
        },
        {
            "channel": "voice",
            "from": "ACME INC",
            "message": "Dear customer your ACME inc PIN is @@pin",
            "language": "en_US",
            "gender": "female",
            "repeat": 3,
            "dtmf_required": true,
            "next_event_in": 60,
            "order": 3
        },
        {
            "channel": "flashcall",
            "next_event_in": 30,
            "order": 5
        }
    ]
}