docs: Add documentation for integration APIs (#2300)
This commit is contained in:
@@ -3,4 +3,8 @@ json.name resource.name
|
|||||||
json.description resource.description
|
json.description resource.description
|
||||||
json.enabled resource.enabled?(@current_account)
|
json.enabled resource.enabled?(@current_account)
|
||||||
json.button resource.action
|
json.button resource.action
|
||||||
json.hooks @current_account.hooks.where(app_id: resource.id)
|
json.hooks do
|
||||||
|
json.array! @current_account.hooks.where(app_id: resource.id) do |hook|
|
||||||
|
json.partial! 'api/v1/models/hook.json.jbuilder', resource: hook
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
json.id resource.id
|
json.id resource.id
|
||||||
json.app resource.app.params.to_h
|
json.app_id resource.app_id
|
||||||
json.enabled resource.enabled?
|
json.status resource.enabled?
|
||||||
json.inbox_id resource.inbox_id
|
json.inbox_id resource.inbox_id
|
||||||
|
json.account_id resource.account_id
|
||||||
|
json.hook_type resource.hook_type
|
||||||
|
json.settings resource.settings
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ RSpec.describe 'Integration Hooks API', type: :request do
|
|||||||
|
|
||||||
expect(response).to have_http_status(:success)
|
expect(response).to have_http_status(:success)
|
||||||
data = JSON.parse(response.body)
|
data = JSON.parse(response.body)
|
||||||
expect(data['app']['id']).to eq params[:app_id]
|
expect(data['app_id']).to eq params[:app_id]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -72,7 +72,7 @@ RSpec.describe 'Integration Hooks API', type: :request do
|
|||||||
|
|
||||||
expect(response).to have_http_status(:success)
|
expect(response).to have_http_status(:success)
|
||||||
data = JSON.parse(response.body)
|
data = JSON.parse(response.body)
|
||||||
expect(data['app']['id']).to eq 'slack'
|
expect(data['app_id']).to eq 'slack'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -27,6 +27,10 @@ account:
|
|||||||
$ref: ./resource/account.yml
|
$ref: ./resource/account.yml
|
||||||
team:
|
team:
|
||||||
$ref: ./resource/team.yml
|
$ref: ./resource/team.yml
|
||||||
|
integrations_app:
|
||||||
|
$ref: ./resource/integrations/app.yml
|
||||||
|
integrations_hook:
|
||||||
|
$ref: ./resource/integrations/hook.yml
|
||||||
|
|
||||||
# RESPONSE
|
# RESPONSE
|
||||||
|
|
||||||
@@ -87,3 +91,9 @@ conversation_message_create:
|
|||||||
|
|
||||||
team_create_update_payload:
|
team_create_update_payload:
|
||||||
$ref: ./request/team/create_update_payload.yml
|
$ref: ./request/team/create_update_payload.yml
|
||||||
|
|
||||||
|
integrations_hook_create_payload:
|
||||||
|
$ref: ./request/integrations/hook_create_payload.yml
|
||||||
|
|
||||||
|
integrations_hook_update_payload:
|
||||||
|
$ref: ./request/integrations/hook_update_payload.yml
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
app_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of app for which integration hook is being created
|
||||||
|
inbox_id:
|
||||||
|
type: string
|
||||||
|
description: The inbox ID, if the hook is an inbox hook
|
||||||
|
settings:
|
||||||
|
type: object
|
||||||
|
description: The settings required by the integration
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
settings:
|
||||||
|
type: object
|
||||||
|
description: The settings required by the integration
|
||||||
23
swagger/definitions/resource/integrations/app.yml
Normal file
23
swagger/definitions/resource/integrations/app.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the integration
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description: The name of the integration
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
description: The description about the team
|
||||||
|
hook_type:
|
||||||
|
type: string
|
||||||
|
description: Whether the integration is an account or inbox integration
|
||||||
|
enabled:
|
||||||
|
type: boolean
|
||||||
|
description: Whether the integration is enabled for the account
|
||||||
|
allow_multiple_hooks:
|
||||||
|
type: boolean
|
||||||
|
description: Whether multiple hooks can be created for the integration
|
||||||
|
hooks:
|
||||||
|
type: array
|
||||||
|
description: If there are any hooks created for this integration
|
||||||
23
swagger/definitions/resource/integrations/hook.yml
Normal file
23
swagger/definitions/resource/integrations/hook.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the integration hook
|
||||||
|
app_id:
|
||||||
|
type: string
|
||||||
|
description: The ID of the integration app
|
||||||
|
inbox_id:
|
||||||
|
type: string
|
||||||
|
description: Inbox ID if its an Inbox integration
|
||||||
|
account_id:
|
||||||
|
type: string
|
||||||
|
description: Account ID of the integration
|
||||||
|
status:
|
||||||
|
type: boolean
|
||||||
|
description: Whether the integration hook is enabled for the account
|
||||||
|
hook_type:
|
||||||
|
type: boolean
|
||||||
|
description: Whether its an account or inbox integration hook
|
||||||
|
settings:
|
||||||
|
type: object
|
||||||
|
description: The associated settings for the integration
|
||||||
@@ -2,7 +2,7 @@ type: object
|
|||||||
properties:
|
properties:
|
||||||
id:
|
id:
|
||||||
type: number
|
type: number
|
||||||
description: The id of the team
|
description: The ID of the team
|
||||||
name:
|
name:
|
||||||
type: string
|
type: string
|
||||||
description: The name of the team
|
description: The name of the team
|
||||||
@@ -14,7 +14,7 @@ properties:
|
|||||||
description: If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team
|
description: If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team
|
||||||
account_id:
|
account_id:
|
||||||
type: number
|
type: number
|
||||||
description: The id of the account with the team is a part of
|
description: The ID of the account with the team is a part of
|
||||||
is_member:
|
is_member:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: This field shows whether the current user is a part of the team
|
description: This field shows whether the current user is a part of the team
|
||||||
|
|||||||
6
swagger/parameters/hook_id.yml
Normal file
6
swagger/parameters/hook_id.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
in: path
|
||||||
|
name: hook_id
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
required: true
|
||||||
|
description: The numeric ID of the integration hook
|
||||||
@@ -4,6 +4,9 @@ account_id:
|
|||||||
team_id:
|
team_id:
|
||||||
$ref: ./team_id.yml
|
$ref: ./team_id.yml
|
||||||
|
|
||||||
|
hook_id:
|
||||||
|
$ref: ./hook_id.yml
|
||||||
|
|
||||||
source_id:
|
source_id:
|
||||||
$ref: ./source_id.yml
|
$ref: ./source_id.yml
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ name: id
|
|||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
description: The id of the team to be updated
|
description: The ID of the team to be updated
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ get:
|
|||||||
- name: id
|
- name: id
|
||||||
in: path
|
in: path
|
||||||
type: number
|
type: number
|
||||||
description: id of the contact
|
description: ID of the contact
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ get:
|
|||||||
- name: id
|
- name: id
|
||||||
in: path
|
in: path
|
||||||
type: number
|
type: number
|
||||||
description: id of the contact
|
description: ID of the contact
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
@@ -28,7 +28,7 @@ put:
|
|||||||
- name: id
|
- name: id
|
||||||
in: path
|
in: path
|
||||||
type: number
|
type: number
|
||||||
description: id of the contact
|
description: ID of the contact
|
||||||
required: true
|
required: true
|
||||||
- name: data
|
- name: data
|
||||||
in: body
|
in: body
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ post:
|
|||||||
properties:
|
properties:
|
||||||
inbox_id:
|
inbox_id:
|
||||||
type: number
|
type: number
|
||||||
description: The id of the inbox
|
description: The ID of the inbox
|
||||||
required: true
|
required: true
|
||||||
source_id:
|
source_id:
|
||||||
$ref: '#/parameters/source_id'
|
$ref: '#/parameters/source_id'
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ post:
|
|||||||
- name: id
|
- name: id
|
||||||
in: path
|
in: path
|
||||||
type: number
|
type: number
|
||||||
description: id of the conversation
|
description: ID of the conversation
|
||||||
required: true
|
required: true
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
|
|||||||
@@ -113,3 +113,20 @@
|
|||||||
$ref: ./teams/update.yml
|
$ref: ./teams/update.yml
|
||||||
delete:
|
delete:
|
||||||
$ref: ./teams/delete.yml
|
$ref: ./teams/delete.yml
|
||||||
|
|
||||||
|
|
||||||
|
# Integrations
|
||||||
|
/accounts/{account_id}/integrations/apps:
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/parameters/account_id'
|
||||||
|
get:
|
||||||
|
$ref: './integrations/apps/show.yml'
|
||||||
|
|
||||||
|
|
||||||
|
/accounts/{account_id}/integrations/hooks:
|
||||||
|
post:
|
||||||
|
$ref: './integrations/hooks/create.yml'
|
||||||
|
patch:
|
||||||
|
$ref: ./integrations/hooks/update.yml
|
||||||
|
delete:
|
||||||
|
$ref: ./integrations/hooks/delete.yml
|
||||||
14
swagger/paths/integrations/apps/show.yml
Normal file
14
swagger/paths/integrations/apps/show.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
tags:
|
||||||
|
- Integrations
|
||||||
|
operationId: get-details-of-all-integrations
|
||||||
|
summary: List all the Integrations
|
||||||
|
description: Get the details of all Integrations available for the account
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Success
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/integrations_app'
|
||||||
|
401:
|
||||||
|
description: Unauthorized
|
||||||
|
404:
|
||||||
|
description: Url not found
|
||||||
19
swagger/paths/integrations/hooks/create.yml
Normal file
19
swagger/paths/integrations/hooks/create.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
tags:
|
||||||
|
- Integrations
|
||||||
|
operationId: create-an-integration-hook
|
||||||
|
summary: Create an integration hook
|
||||||
|
description: Create an integration hook
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/parameters/account_id'
|
||||||
|
- name: data
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/integrations_hook_create_payload'
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Success
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/integrations_hook'
|
||||||
|
401:
|
||||||
|
description: Unauthorized
|
||||||
15
swagger/paths/integrations/hooks/delete.yml
Normal file
15
swagger/paths/integrations/hooks/delete.yml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
tags:
|
||||||
|
- Integrations
|
||||||
|
operationId: delete-an-integration-hook
|
||||||
|
summary: Delete an Integration Hook
|
||||||
|
description: Delete an Integration Hook
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/parameters/account_id'
|
||||||
|
- $ref: '#/parameters/hook_id'
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Success
|
||||||
|
401:
|
||||||
|
description: Unauthorized
|
||||||
|
404:
|
||||||
|
description: The hook does not exist in the account
|
||||||
20
swagger/paths/integrations/hooks/update.yml
Normal file
20
swagger/paths/integrations/hooks/update.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
tags:
|
||||||
|
- Integrations
|
||||||
|
operationId: update-an-integrations-hook
|
||||||
|
summary: Update an Integration Hook
|
||||||
|
description: Update an Integration Hook
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/parameters/account_id'
|
||||||
|
- $ref: '#/parameters/hook_id'
|
||||||
|
- name: data
|
||||||
|
in: body
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/integrations_hook_update_payload'
|
||||||
|
responses:
|
||||||
|
200:
|
||||||
|
description: Success
|
||||||
|
schema:
|
||||||
|
$ref: '#/definitions/integrations_hook'
|
||||||
|
401:
|
||||||
|
description: Unauthorized
|
||||||
@@ -11,4 +11,4 @@ responses:
|
|||||||
401:
|
401:
|
||||||
description: Unauthorized
|
description: Unauthorized
|
||||||
404:
|
404:
|
||||||
description: The given team id does not exist in the account
|
description: The given team ID does not exist in the account
|
||||||
|
|||||||
@@ -957,7 +957,7 @@
|
|||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "id of the contact",
|
"description": "ID of the contact",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -987,7 +987,7 @@
|
|||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "id of the contact",
|
"description": "ID of the contact",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1027,7 +1027,7 @@
|
|||||||
"name": "id",
|
"name": "id",
|
||||||
"in": "path",
|
"in": "path",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "id of the contact",
|
"description": "ID of the contact",
|
||||||
"required": true
|
"required": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -1107,7 +1107,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"inbox_id": {
|
"inbox_id": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "The id of the inbox",
|
"description": "The ID of the inbox",
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"source_id": {
|
"source_id": {
|
||||||
@@ -1269,7 +1269,7 @@
|
|||||||
"description": "Unauthorized"
|
"description": "Unauthorized"
|
||||||
},
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "The given team id does not exist in the account"
|
"description": "The given team ID does not exist in the account"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -1321,6 +1321,131 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"/accounts/{account_id}/integrations/apps": {
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/account_id"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"get": {
|
||||||
|
"tags": [
|
||||||
|
"Integrations"
|
||||||
|
],
|
||||||
|
"operationId": "get-details-of-all-integrations",
|
||||||
|
"summary": "List all the Integrations",
|
||||||
|
"description": "Get the details of all Integrations available for the account",
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/integrations_app"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "Url not found"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/accounts/{account_id}/integrations/hooks": {
|
||||||
|
"post": {
|
||||||
|
"tags": [
|
||||||
|
"Integrations"
|
||||||
|
],
|
||||||
|
"operationId": "create-an-integration-hook",
|
||||||
|
"summary": "Create an integration hook",
|
||||||
|
"description": "Create an integration hook",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/account_id"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "data",
|
||||||
|
"in": "body",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/integrations_hook_create_payload"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/integrations_hook"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"patch": {
|
||||||
|
"tags": [
|
||||||
|
"Integrations"
|
||||||
|
],
|
||||||
|
"operationId": "update-an-integrations-hook",
|
||||||
|
"summary": "Update an Integration Hook",
|
||||||
|
"description": "Update an Integration Hook",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/account_id"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/hook_id"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "data",
|
||||||
|
"in": "body",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/integrations_hook_update_payload"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/integrations_hook"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"delete": {
|
||||||
|
"tags": [
|
||||||
|
"Integrations"
|
||||||
|
],
|
||||||
|
"operationId": "delete-an-integration-hook",
|
||||||
|
"summary": "Delete an Integration Hook",
|
||||||
|
"description": "Delete an Integration Hook",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/account_id"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/parameters/hook_id"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "Success"
|
||||||
|
},
|
||||||
|
"401": {
|
||||||
|
"description": "Unauthorized"
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"description": "The hook does not exist in the account"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
@@ -1662,7 +1787,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"id": {
|
"id": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "The id of the team"
|
"description": "The ID of the team"
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@@ -1678,7 +1803,7 @@
|
|||||||
},
|
},
|
||||||
"account_id": {
|
"account_id": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"description": "The id of the account with the team is a part of"
|
"description": "The ID of the account with the team is a part of"
|
||||||
},
|
},
|
||||||
"is_member": {
|
"is_member": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
@@ -1686,6 +1811,72 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"integrations_app": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of the integration"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the integration"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The description about the team"
|
||||||
|
},
|
||||||
|
"hook_type": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Whether the integration is an account or inbox integration"
|
||||||
|
},
|
||||||
|
"enabled": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether the integration is enabled for the account"
|
||||||
|
},
|
||||||
|
"allow_multiple_hooks": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether multiple hooks can be created for the integration"
|
||||||
|
},
|
||||||
|
"hooks": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "If there are any hooks created for this integration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"integrations_hook": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of the integration hook"
|
||||||
|
},
|
||||||
|
"app_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of the integration app"
|
||||||
|
},
|
||||||
|
"inbox_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Inbox ID if its an Inbox integration"
|
||||||
|
},
|
||||||
|
"account_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Account ID of the integration"
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether the integration hook is enabled for the account"
|
||||||
|
},
|
||||||
|
"hook_type": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "Whether its an account or inbox integration hook"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The associated settings for the integration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"extended_contact": {
|
"extended_contact": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
@@ -2048,6 +2239,32 @@
|
|||||||
"description": "If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team"
|
"description": "If this setting is turned on, the system would automatically assign the conversation to an agent in the team while assigning the conversation to a team"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"integrations_hook_create_payload": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"app_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The ID of app for which integration hook is being created"
|
||||||
|
},
|
||||||
|
"inbox_id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The inbox ID, if the hook is an inbox hook"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The settings required by the integration"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"integrations_hook_update_payload": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"settings": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "The settings required by the integration"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"parameters": {
|
"parameters": {
|
||||||
@@ -2067,7 +2284,16 @@
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"required": true,
|
"required": true,
|
||||||
"description": "The id of the team to be updated"
|
"description": "The ID of the team to be updated"
|
||||||
|
},
|
||||||
|
"hook_id": {
|
||||||
|
"in": "path",
|
||||||
|
"name": "hook_id",
|
||||||
|
"schema": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"required": true,
|
||||||
|
"description": "The numeric ID of the integration hook"
|
||||||
},
|
},
|
||||||
"source_id": {
|
"source_id": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
Reference in New Issue
Block a user