The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

400 error on campaign scheduling

SOLVED
Go to solution
Highlighted
Occasional Advisor

400 error on campaign scheduling

Hi I am getting a 400 error when attempting to schedule a campaign. I have been given scheduling access by AppConnect. The campaign definitely exists as I use the API to pull the campaign_id. I have replaced our username with "UserName".

 

here is the xml I am posting:

 

<entry xmlns="http://www.w3.org/2005/Atom">
      <link href="/ws/customers/UserName/campaigns/1105885608857/schedules/1" rel="edit" />
      <id>http://api.constantcontact.com/ws/customers/UserName/campaigns/1105885608857/schedules/1</id>
      <title type="text">2011-06-08T09:56:07.000Z</title>
      <updated>2011-06-08T09:56:07.000Z</updated>
      <author>
            <name>Constant Contact</name>
      </author>
      <content type="application/vnd.ctct+xml">
            <Schedule xmlns="http://ws.constantcontact.com/ns/1.0/" id="http://api.constantcontact.com/ws/customers/UserName/campaigns/1105885608857/schedules/1">
                  <ScheduledTime>2011-06-15T09:56:07.000Z</ScheduledTime>
            </Schedule>
      </content>
</entry>

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: 400 error on campaign scheduling

I ran your XML against my account and was able to create a schedule activity without issue.  When looking into the details on your account, the problem is most likely that you are trying to schedule an email to a list of Contacts with 0 Contact members.  The full body of the error should be that you have no contacts to send to.  To solve this, you would need to add at least 1 Contact to the list you're trying to send to and try scheduling again.

 

If this doesn't solve your problem, please provide the full response message you're receiving from our API. 

Dave Berard
Senior Product Manager, Constant Contact

View solution in original post

2 REPLIES 2
Highlighted
Moderator

Re: 400 error on campaign scheduling

I ran your XML against my account and was able to create a schedule activity without issue.  When looking into the details on your account, the problem is most likely that you are trying to schedule an email to a list of Contacts with 0 Contact members.  The full body of the error should be that you have no contacts to send to.  To solve this, you would need to add at least 1 Contact to the list you're trying to send to and try scheduling again.

 

If this doesn't solve your problem, please provide the full response message you're receiving from our API. 

Dave Berard
Senior Product Manager, Constant Contact

View solution in original post

Highlighted
Occasional Advisor

Re: 400 error on campaign scheduling

That did the trick David. Thanks a lot!

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured