removeWafException — Removing exceptions to rules

The removeWafException method removes an exception to rules. For information about available exception formats and types, see Standard exception interaction.

This request will assume that the example from the addWafException page has been executed, and is the only exception so executed.

The API endpoint is:

https://api.sitelock.com/v1/partner

Request format

  • SiteLockOnlineRequest: This element is used to delineate the full API request.

    • authentication: The partner’s username, password, and branding

      • username: The partner’s API username

      • password: The partner’s API password

      • partner: (Optional) The brand name to use in messaging

    • removeWafException: The method name

Example request

<SiteLockOnlineRequest>
    <authentication>
        <user>Username</user>
        <password>Password</password>
    </authentication>
    <removeWafException>
        <site_id>1234567</site_id>
        <exception_id>987654</exception_id>
        <type>sql_injection</type>
    </removeWafException>
</SiteLockOnlineRequest>
xml

Response format

  • SiteLockOnlineResponse: This element is used to delineate the full API response.

    • removeWafException: The method name

Example response

<SiteLockOnlineResponse>
    <removeWafException>
        <exceptions>
            <exception_id>987654</exception_id>
            <type>sql_injection</type>
        </exceptions>
        <status>ok</status>
    </removeWafException>
</SiteLockOnlineResponse>
xml