Core
IoT Platform v2.x
2

updateDefaultAccount #

Update a default Hermes account. If none is found, this controller will create a new account.

URL: http://kuzzle:7512/hermes/config/:client/updateDefault
Method: POST
Body:

The body depends on messenger client.

SMTP #

{
    "host": "<host>",
    "port": "<port>", // number
    "user": "<user>",
    "password": "<password>",
    "defaultSender": "<defaultSender>",  // email
}

Arguments :

  • host : smtp server host name or ip address
  • port : smtp port
  • user : smtp user
  • password : smtp password
  • defaultSender : default mail address displayed as sender when a message is sent with this account

Sendgrid #

{
    "apiKey": "<apiKey>",
    "defautSender":"<defautSender>", // email
}

Arguments :

  • apiKey : sendGrid API key
  • defaultSender : default mail address displayed as sender when a message is sent with this account

Twilio #

{
    "accountSid": "<accountSid>",
    "authToken": "<authToken>",
    "defautSender": "<defautSender>", // phone number
}

Arguments :

  • accountSid : twilio account SID
  • authToken : twilio auth token
  • defaultSender : default phone number displayed as sender when a message is sent with this account