Skip to content

Deleting a contact fails #282

@bamg-shaun

Description

@bamg-shaun

The documentation for the delete only shows cURL example, so on testing the DELETE contacts endpoint I discovered the SDK is wrong and needs updating.

I'm using node-mailjet v6.0.5

Example code I've used during testing, which has the same format as other calls on the above link.

      const _response = await client
        .delete('contacts', { version: 'v4' })
        .id(contactId)
        .request();

The above results in a call to DELETE/v4/contact/3860384733. which returns 404.

The reason is that the call should be directed at DELETE/v4/contacts/3860384733, notice the additional s in this call.

Executing a curl using the .../contacts/... url works fine, and with .../contact/... does not.

Basically the SDK needs updating to use contacts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions