Supprimer un template
Delete /settings/templates/{id}
Paramètres :
| Nom | Description | Type | Obligatoire |
|---|---|---|---|
| id | Id du template | String | Oui |
Réponse :
| Nom | Description | Type |
|---|---|---|
| Response Code | 200 OK | Http Status Code |
Langage de programmation :
Exemple de réponse :
Pas de réponse json
Exemple de code :
curl -X DELETE -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/settings/templates/g65r4g64h65tr47h678th11d
require 'vendor/autoload.php';
$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');
try {
$tipimail->getSettingsService()->getTemplatesService()->delete('646r54g6r4gr6g46g46546d4');
}
catch(Tipimail\Exceptions\TipimailException $e) {
echo 'Exception received :', $e->getMessage(), "\n";
}