DELETE /mail/{id}/rules/{ruleId}

Removes one of the configured deny mail rules from the system.

Path parameters

  • ruleId integer Required

    The ID of the Rules entry.

  • id integer Required

    Mail ID number

Responses

  • 200 application/json

    search results matching criteria

    Hide response attributes Show response attributes object
    • status string Required
    • text string Required
  • 400 application/json

    The specified resource was not found

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
  • 404 application/json

    The specified resource was not found

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
DELETE /mail/{id}/rules/{ruleId}
curl \
 --request DELETE 'https://my.interserver.net/apiv2/mail/{id}/rules/34' \
 --header "X-API-KEY: $API_KEY"
Response examples (200)
{
  "text": "The command completed successfully.",
  "status": "ok"
}
Response examples (400)
{
  "code": "string",
  "message": "string"
}
Response examples (401)
{
  "code": "string",
  "message": "string"
}
Response examples (404)
{
  "code": "string",
  "message": "string"
}