Delete a page

Contents

    Permanently delete a page.

    Requires the API Token and an Authentication Token. See Authentication.

    HTTP Request

    DELETE /api/pages/{key}

    Parameters

    Key Type Description
    token (required) string API Token.
    authentication (required) string User Authentication Token.

    Response

    HTTP Code: 200
    Content-Type: application/json
    Body:
    {
      "status": "0",
      "message": "Page deleted."
    }

    No data field is returned on delete.

    Errors

    Code Reason
    401 Missing or invalid authentication token.
    404 No page exists with the given key.
    500 Delete failed after the page was located.

    CURL command example

    $ curl -X DELETE \
        "https://www.example.com/api/pages/my-dog?token=<api-token>&authentication=<auth-token>"