Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions specs/contacts.openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ paths:
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"email": "john.smith@example.com",
"fields": {"first_name": "John", "last_name": "Smith", "company": "Example Inc"},
"list_ids": [1, 2, 3]
"contact": {
"email": "john.smith@example.com",
"fields": {"first_name": "John", "last_name": "Smith", "company": "Example Inc"},
"list_ids": [1, 2, 3]
}
}'
- lang: javascript
label: Node.js
Expand Down Expand Up @@ -436,7 +438,7 @@ paths:
curl -X PATCH https://mailtrap.io/api/accounts/{account_id}/contacts/{contact_identifier} \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"email": "new@example.com", "fields": {"first_name": "John"}}'
-d '{"contact": { "email": "new@example.com", "fields": {"first_name": "John"}}}'
- lang: javascript
label: Node.js
source: |
Expand Down