Chatwoot/swagger/paths/contact/list_create.yml

41 lines
857 B
YAML
Raw Normal View History

2020-02-23 07:24:29 +00:00
get:
tags:
- Contact
operationId: contactList
description: Listing all the contacts with pagination
summary: List Contacts
2020-02-23 07:24:29 +00:00
parameters:
- name: query_hash
in: query
type: string
responses:
200:
description: Success
schema:
$ref: '#/definitions/contact_list'
400:
description: Bad Request Error
schema:
$ref: '#/definitions/bad_request_error'
post:
tags:
- Contact
operationId: contactCreate
description: Create New Contact
2020-02-23 07:24:29 +00:00
parameters:
- name: data
in: body
required: true
schema:
$ref: '#/definitions/contact_create'
responses:
200:
description: Success
schema:
$ref: '#/definitions/extended_contact'
400:
description: Bad Request Error
schema:
$ref: '#/definitions/bad_request_error'