Chore: Update Swagger API docs (#608)
This commit is contained in:
34
swagger/paths/widget/inboxes/create.yml
Normal file
34
swagger/paths/widget/inboxes/create.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
post:
|
||||
tags:
|
||||
- Widget
|
||||
operationId: widgetInboxCreation
|
||||
summary: Create a website inbox
|
||||
description: You can create more than one website inbox in each account
|
||||
parameters:
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
website:
|
||||
type: object
|
||||
properties:
|
||||
website_name:
|
||||
type: string
|
||||
description: The name of the inbox
|
||||
website_url:
|
||||
type: string
|
||||
description: URL at which the widget will be loaded
|
||||
widget_color:
|
||||
type: string
|
||||
description: A Hex-color string used to customize the widget
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/inbox'
|
||||
404:
|
||||
description: Inbox not found
|
||||
403:
|
||||
description: Access denied
|
||||
28
swagger/paths/widget/inboxes/update.yml
Normal file
28
swagger/paths/widget/inboxes/update.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
patch:
|
||||
tags:
|
||||
- Widget
|
||||
operationId: widgetInboxUpdate
|
||||
summary: Update a website inbox
|
||||
description: Update widget color of an inbox
|
||||
parameters:
|
||||
- name: data
|
||||
in: body
|
||||
required: true
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
website:
|
||||
type: object
|
||||
properties:
|
||||
widget_color:
|
||||
type: string
|
||||
description: A Hex-color string used to customize the widget
|
||||
responses:
|
||||
200:
|
||||
description: Success
|
||||
schema:
|
||||
$ref: '#/definitions/inbox'
|
||||
404:
|
||||
description: Inbox not found
|
||||
403:
|
||||
description: Access denied
|
||||
Reference in New Issue
Block a user