mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-23 16:12:34 +02:00
Implement Update Contact API endpoint
Added Update Contact API to modify contact details.
This commit is contained in:
@@ -225,6 +225,55 @@ paths:
|
||||
$ref: '#/components/schemas/invalidtoken'
|
||||
security:
|
||||
- x-api-token: []
|
||||
put:
|
||||
tags:
|
||||
- Contact
|
||||
summary: Update Contact
|
||||
description: The Update Contact API enables you to modify and update the details of a specific Contact.
|
||||
operationId: updateContact
|
||||
parameters:
|
||||
- name: contact_id
|
||||
in: path
|
||||
description: objectId of contact
|
||||
required: true
|
||||
style: simple
|
||||
explode: false
|
||||
schema:
|
||||
type: string
|
||||
format: string
|
||||
requestBody:
|
||||
description: Provide the fields you wish to update. Any fields omitted from the request will remain unchanged.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/contact'
|
||||
responses:
|
||||
"200":
|
||||
description: Contact updated successfully!
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/inline_response_200_5'
|
||||
"400":
|
||||
description: Please provide valid field names!
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/inline_response_400'
|
||||
"404":
|
||||
description: Contact not found!
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/inline_response_404_7'
|
||||
"405":
|
||||
description: Invalid API Token!
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/invalidtoken'
|
||||
security:
|
||||
- x-api-token: []
|
||||
delete:
|
||||
tags:
|
||||
- Contacts
|
||||
|
||||
Reference in New Issue
Block a user