Modifier un identifiant SMTP existant

PATCH /api/email/credentials/(string: email)

Crée un nouvel identifiant SMTP.

En-têtes de requête:
Status Codes:
Resqson string emailAddress:

L’adresse email d’envoi.

Resqson string serverAddress:

L’adresse (port inclus) du serveur SMTP servant à envoyer les emails.

Resqson string login:

Le nom d’utilisateur à utiliser pour l’authentification SMTP.

Resqson string password:

Le mot de passe utilisateur.

En-têtes de réponse:
  • Location – Le chemin d’accès du nouvel identifiant créé

Exemple de requête

PATCH https://my_waarp_gateway.net/api/email/credentials/waarp@example.com HTTP/1.1
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
Content-Type: application/json
Content-Length: 197

{
  "emailAddress": "waarp_new@example.com",
  "serverAddress": "smtp.example.com:587",
  "login": "waarp_new",
  "password": "sesame"
}

Exemple de réponse

HTTP/1.1 201 CREATED
Location: https://my_waarp_gateway.net/api/email/credentials/waarp_new@example.com