Discard Email Draft by Id via REST API not working | Community
Skip to main content
May 6, 2016
Question

Discard Email Draft by Id via REST API not working

  • May 6, 2016
  • 1 reply
  • 1461 views

I am trying to use the delete email api call​. That is currently returns :

\

When I look up the email's status I get this:

Any help would be great.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Grégoire_Miche2
Level 10
May 6, 2016

Hi Aaron,

Are you sure the mail has a draft ?

You should may be start with a "Get email by ID" with a draft status.

-Greg

May 6, 2016

Yes, if you look at the second image the email is in draft status.

Grégoire_Miche2
Level 10
May 6, 2016

In the UI, the "discard draft" works only for approved emails with a draft, not for draft emails. May be this is the cause here as well.

-Greg