Modify an exception
URI - PUT
To use this endpoint, send a PUT request to update existing URL-Reputation exception: /v1.0/sectool-exceptions/avanan_dlp
Request
The request includes HTTP headers (obtained in the authentication/authorization process and used to sign the request) with request parameters posted on the request body.
Request Headers
|
Header |
Type |
Required |
Format |
Description/Sample |
|---|---|---|---|---|
|
x-av-req-id |
String |
Yes |
UUID – Generated and supplied on the request. |
d290f1ee-6c54-4b01-90e6-d701748f085 1 |
|
x-av-token |
String |
Yes |
Token |
Token obtained in the authentication sequence. tkn8546ffffggd9d8934593 |
|
x-av-app-id |
String |
Yes |
Avanan Application ID |
US:myapp29 |
|
x-av-date |
String |
Yes |
Date-time in GMT |
'2021-04-10T00:00:00.000Z' |
|
x-av-sig |
String |
Yes |
Calculated signature |
tkn8jmveolrrtertr9d8934593 For more details, see Modify an exception. |
Request String Parameters
No request string parameters.
Request Body
All applicable request parameters are posted on the request body JSON:
{
"requestData": {
"exception_type": "exception_type",
"exception_str": "example_hash",
"comment": "Test exception",
"exception_payload": {
"condition": "with_link"
}
}
}
Request Body Parameters
No request body parameters.
Request sample (CURL) format
This request sample shows URI base in USA region. For URI base in other regions, see URLs and URL Base.
curl -X PUT -H "Accept: application/json" \
-H "x-av-req-id: d290f1ee-6c54-4b01-90e6-d701748f3351" \
-H "x-av-token: tkn8546ffffggd9d8934593" \
-H "x-av-app-id: myapp29" \
-H "x-av-date: 2016-08-29T09:12:33.001Z" \
-H "x-av-sig: tkn8jmveolrrtertr9d8934593" \
-d "{"requestData":
{
"exception_type": "exception_type",
"exception_str": "example_hash",
"comment": "Test exception",
"exception_payload": {
"condition": "with_link"
}
}
}" \
https://smart-api-production-1-us.avanan.net/v1.0/sectool-exceptions/avanan_dlp
This sample request updates the existing DLP exception rule with the specified payload.
Response
The response obtained from the service includes an HTTP response code and JSON formatted structure.
Response Structure
No response data structure.
Response Parameters
No response parameters.
Response Sample
No response sample.