400 error on campaign scheduling

SOLVED
Go to solution
ZoomTan
Regular Participant

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
DaveBerard
Moderator

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
DaveBerard
Moderator

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

ZoomTan
Regular Participant

That did the trick David. Thanks a lot!

Developer Portal

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

Visit Page