feat: Update swagger to openapi 3.0.4, update request payloads with examples (#11374)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: account_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The numeric ID of the account
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The ID of the agentbot to be updated
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
in: query
|
||||
name: sort
|
||||
type: string
|
||||
enum:
|
||||
- name
|
||||
- email
|
||||
- phone_number
|
||||
- last_activity_at
|
||||
- -name
|
||||
- -email
|
||||
- -phone_number
|
||||
- -last_activity_at
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
- name
|
||||
- email
|
||||
- phone_number
|
||||
- last_activity_at
|
||||
- -name
|
||||
- -email
|
||||
- -phone_number
|
||||
- -last_activity_at
|
||||
required: false
|
||||
description: The attribute by which list should be sorted
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: conversation_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The numeric ID of the conversation
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: conversation_uuid
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The uuid of the conversation
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: custom_filter_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The numeric ID of the custom filter
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: hook_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The numeric ID of the integration hook
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: inbox_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The ID of the Inbox
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: message_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The numeric ID of the message
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
default: 1
|
||||
schema:
|
||||
type: integer
|
||||
default: 1
|
||||
required: false
|
||||
description: The page parameter
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The numeric ID of the user on the platform
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: portal_id
|
||||
type: integer
|
||||
name: id
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: The numeric ID of the portal
|
||||
description: The slug identifier of the portal
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: contact_identifier
|
||||
type: string
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: The source id of contact obtained on contact create
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: inbox_identifier
|
||||
type: string
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: The identifier obtained from API inbox channel
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
in: query
|
||||
name: metric
|
||||
type: string
|
||||
enum:
|
||||
- conversations_count
|
||||
- incoming_messages_count
|
||||
- outgoing_messages_count
|
||||
- avg_first_response_time
|
||||
- avg_resolution_time
|
||||
- resolutions_count
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
- conversations_count
|
||||
- incoming_messages_count
|
||||
- outgoing_messages_count
|
||||
- avg_first_response_time
|
||||
- avg_resolution_time
|
||||
- resolutions_count
|
||||
required: true
|
||||
description: The type of metric
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
in: query
|
||||
name: type
|
||||
type: string
|
||||
enum:
|
||||
- account
|
||||
- agent
|
||||
- inbox
|
||||
- label
|
||||
- team
|
||||
schema:
|
||||
type: string
|
||||
enum:
|
||||
- account
|
||||
- agent
|
||||
- inbox
|
||||
- label
|
||||
- team
|
||||
required: true
|
||||
description: Type of report
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: source_id
|
||||
required: true
|
||||
type: string
|
||||
schema:
|
||||
type: string
|
||||
description: "Id of the session for which the conversation is created.\n\n\n\n Source Ids can be obtained through contactable inboxes API or via generated.<br/><br/>Website: Chatwoot generated string which can be obtained from webhook events. <br/> Phone Channels(Twilio): Phone number in e164 format <br/> Email Channels: Contact Email address <br/> API Channel: Any Random String"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: team_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The ID of the team to be updated
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
in: path
|
||||
name: webhook_id
|
||||
type: integer
|
||||
schema:
|
||||
type: integer
|
||||
required: true
|
||||
description: The numeric ID of the webhook
|
||||
|
||||
Reference in New Issue
Block a user