PUT
/
api
/
v3
/
network-settings
/
prehook
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Information of a prehook to be updated.

The body is of type object.

Response

200
application/json

Prehook configuration

Prehook Setting