Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update _contacts-delete.md #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions guides/_contacts-delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ Save the contact ID - you need it to complete the deletion process.
curl -s \
-X DELETE \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v4/contacts/{contact_ID} \
https://api.mailjet.com/v4/contacts/{contact_ID}
```

Use the `{contact_ID}` you retrieved to `DELETE` the contact with the `/v4/contacts/{contact_ID}` endpoint. When the deletion is successful, the API will return a `200 OK` status. Any other response will indicate that the deletion was not successfully processed.
Expand All @@ -229,7 +229,7 @@ Use the `{contact_ID}` you retrieved to `DELETE` the contact with the `/v4/conta
curl -s \
-X GET \
--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
https://api.mailjet.com/v3/REST/contact/{contact_ID} \
https://api.mailjet.com/v3/REST/contact/{contact_ID}
```

> API Response
Expand Down