Update Integration
PUT/api/v2/instance/:instanceId/chatwoot-integration
Update Integration
Request
Path Parameters
ID of the instance.
- application/json
Body
required
Objective:
This endpoint is used to update the integration between a specific instance and Chatwoot, allowing control over various aspects of the integration.
Request Body:
accountId
: Identifier for the Chatwoot account.- Type: String or Integer
- Required: No
enabled
: Determines if the integration is enabled or not.- Type: Boolean
- Default:
true
- Required: No
chatwootURL
: URL of the Chatwoot frontend.- Type: String (URL)
- Required
- Required: No
chatwootAccessToken
: Access token for the Chatwoot account.- Type: String
- Required
- Required: No
webhookId
: The registered webhook must contain the path /webhook and follow the format below.- Type: String (uuid)
- Required
- This URL will receive the API messages.
- Ex.:
- https://connector.yourdomain.com
- http://localhost:5000/webhook
- Ex.:
inbox
: Object containing inbox information.name
: Name of the inbox. Used if creating a new inbox.- Type: String
- Required: Only if
identifier
is not provided.
identifier
: Used to link an existing inbox.- Type: String or Integer
- Required: Only if
name
is not provided.
integrationOptions
: Object with additional integration options.enabledGroup
: Defines if group messages should be sent to Chatwoot.- Type: Boolean
- Default:
false
- Required: No
displayAttendant
: Enables the display of the attendant's name in the message header.- Type: Boolean
- Required: No
startConversationAs
: Determines how a new conversation should start.- Type: String
- Possible Values:
open
,pending
- Default:
open
- Required: No
Default value: true
Url of your chatwoot access
Access token for your chatwoot account
Webhook ID that connects to the connector.
inbox object
Name of the inbox that will be created
Enter the ID of an inbox that already exists
integrationOptions object
Default value: false
Enables the exchange of messages with groups
Default value: true
Enable the display of the attendant's name in the message caput.
Possible values: [pending
, open
]
Default value: open
Define how you will start new conversations on Chatwoot.
Responses
- 200
- 400
- 401
- 403
- 404
Success - status: 200
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [pending
, open
]
Webhook object
Instance unique url.
Default value: false
Enable or disable the url.
{
"integrationId": "string",
"enabled": true,
"accountId": 0,
"inboxId": 0,
"chatwootURL": "string",
"chatwootAccessToken": "string",
"enabledGroup": true,
"displayAttendant": true,
"startConversationAs": "pending",
"createdAt": "2024-04-14T14:11:05.734Z",
"updatedAt": "2024-04-14T14:11:05.734Z",
"deletedAt": "2024-04-14T14:11:05.734Z",
"instanceInstanceId": "string",
"Webhook": {
"url": "string",
"enabled": false,
"webhookId": "string"
}
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
ForbiddenException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}