Skip to main content
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
integrations
/
hooks
/
{hook_id}
Update an Integration Hook
curl --request PATCH \
  --url https://app.chatwoot.com/api/v1/accounts/{account_id}/integrations/hooks/{hook_id} \
  --header 'Content-Type: application/json' \
  --header 'api_access_token: <api-key>' \
  --data '{
  "status": 1,
  "settings": {}
}'
{
  "id": "<string>",
  "app_id": "<string>",
  "inbox_id": "<string>",
  "account_id": "<string>",
  "status": true,
  "hook_type": true,
  "settings": {}
}

Authorizations

api_access_token
string
header
required

This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.

Path Parameters

account_id
integer
required

The numeric ID of the account

hook_id
integer
required

The numeric ID of the integration hook

Body

application/json
status
integer

The status of the integration (0 for inactive, 1 for active)

Example:

1

settings
object

The settings required by the integration

Example:
{}

Response

Success

id
string

The ID of the integration hook

app_id
string

The ID of the integration app

inbox_id
string

Inbox ID if its an Inbox integration

account_id
string

Account ID of the integration

status
boolean

Whether the integration hook is enabled for the account

hook_type
boolean

Whether its an account or inbox integration hook

settings
object

The associated settings for the integration

I