2020-02-23 07:24:29 +00:00
|
|
|
get:
|
2020-03-03 19:11:21 +00:00
|
|
|
tags:
|
|
|
|
- Contact
|
|
|
|
operationId: contactDetails
|
2020-02-23 07:24:29 +00:00
|
|
|
summary: Show Contact
|
2021-09-04 12:26:46 +00:00
|
|
|
description: Get a contact belonging to the account using ID
|
2020-02-23 07:24:29 +00:00
|
|
|
parameters:
|
2021-09-04 12:26:46 +00:00
|
|
|
- $ref: '#/parameters/account_id'
|
2020-02-23 07:24:29 +00:00
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
type: number
|
2021-05-20 15:16:45 +00:00
|
|
|
description: ID of the contact
|
2020-02-23 07:24:29 +00:00
|
|
|
required: true
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/extended_contact'
|
|
|
|
404:
|
|
|
|
description: Contact not found
|
|
|
|
403:
|
|
|
|
description: Access denied
|
|
|
|
|
|
|
|
put:
|
2020-03-03 19:11:21 +00:00
|
|
|
tags:
|
|
|
|
- Contact
|
|
|
|
operationId: contactUpdate
|
2020-02-23 07:24:29 +00:00
|
|
|
summary: Update Contact
|
2021-09-04 12:26:46 +00:00
|
|
|
description: Update a contact belonging to the account using ID
|
2020-02-23 07:24:29 +00:00
|
|
|
parameters:
|
2021-09-04 12:26:46 +00:00
|
|
|
- $ref: '#/parameters/account_id'
|
2020-02-23 07:24:29 +00:00
|
|
|
- name: id
|
|
|
|
in: path
|
|
|
|
type: number
|
2021-05-20 15:16:45 +00:00
|
|
|
description: ID of the contact
|
2020-02-23 07:24:29 +00:00
|
|
|
required: true
|
|
|
|
- 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
|