Update Bot - Early Access

Resource

https://api.infobip.com/ccaas/1/bots/{botId}

Parameters

Use this method to update bot.

Property name Type Description
*botId string  Required - Bot id to update.
*displayName string Required - Bot name to be displayed, 255 characters max.
*webhookUrl string Required - webhook url location, message is send to
*destination string Required - bot destination number
enabled boolean Possible bot status (TRUE, FALSE). if not provided, bot will be set to default TRUE

Request Example

					PUT /ccaas/1/bots/97457D13B1FC79AF3C1A1096AE7E77AB HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Accept: application/json

{
    "displayName": "Bot Young",
    "webhookUrl": "www.webhookurl.com/location2",
    "destination": "447492263897",
    "enabled": false
}
					
				

Response

					{
    "displayName": "Bot Young",
    "webhookUrl": "www.webhookurl.com/location2",
    "destination": "447492263897",
    "enabled": true,
    "id": "97457D13B1FC79AF3C1A1096AE7E77AB"
}
					
				
					{
  "statusCode": "ERROR",
  "message": "Invalid id '97457D13B1FC79AF3C1A1096AE7E77AB' given! No such entity exists."
}
					
				
					{
    "statusCode": "ERROR",
    "message": "Required request body is missing or not valid"
}
					
				
					{
    "statusCode": "ERROR",
    "message": "name cannot be null"
}