Chatwoot/swagger/paths/application/contacts/crud.yml

59 lines
1.2 KiB
YAML
Raw Permalink Normal View History

parameters:
- $ref: '#/parameters/account_id'
- name: id
in: path
type: number
description: ID of the contact
required: true
2020-02-23 07:24:29 +00:00
get:
tags:
- Contacts
operationId: contactDetails
2020-02-23 07:24:29 +00:00
summary: Show Contact
description: Get a contact belonging to the account using ID
2020-02-23 07:24:29 +00:00
responses:
200:
description: Success
schema:
$ref: '#/definitions/extended_contact'
404:
description: Contact not found
403:
description: Access denied
put:
tags:
- Contacts
operationId: contactUpdate
2020-02-23 07:24:29 +00:00
summary: Update Contact
description: Update a contact belonging to the account using ID
2020-02-23 07:24:29 +00:00
parameters:
- name: data
in: body
required: true
schema:
$ref: '#/definitions/contact_update'
responses:
204:
description: Success
schema:
$ref: '#/definitions/contact_base'
404:
description: Contact not found
403:
description: Access denied
delete:
tags:
- Contacts
operationId: contactDelete
summary: Delete Contact
responses:
200:
description: Success
401:
description: Unauthorized
404:
description: Contact not found