Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Information of a prehook to be updated.
curl --request PUT \
--url https://apix.us.amity.co/api/v3/network-settings/prehook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"callbackUrl": "<string>",
"defaultAction": "allow",
"regenerateKey": true
}'{
"enabled": true,
"callbackUrl": "<string>",
"defaultAction": "allow",
"secretKey": "<string>"
}Update prehook configuration
curl --request PUT \
--url https://apix.us.amity.co/api/v3/network-settings/prehook \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"enabled": true,
"callbackUrl": "<string>",
"defaultAction": "allow",
"regenerateKey": true
}'{
"enabled": true,
"callbackUrl": "<string>",
"defaultAction": "allow",
"secretKey": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Information of a prehook to be updated.