Core
IoT Platform v2.x
2

updateCustomAccount #

Update a Hermes account associated with the tenant and store data in the tenant's metadata.

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

The body depends on the messenger client. Different configurations available for updating tenant data.

SMTP #

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

Arguments :

  • tenantId : Tenant to update
  • 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 #

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

Arguments :

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

Twilio #

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

Arguments :

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