I am trying to update the options of a custom field using http://www.campaignmonitor.com/api/lists/#updating_custom_field_options but my posts always return the following:
Code => (int) 404
Message => 'We couldn't find the resource you're looking for. Please check the documentation and try again'
I doublechecked that I use the correct customfieldkey. Our posts to the CM API are also valid as we successfully use other calls to add subscribers, delete subscribers, ...
Could you write to firstname.lastname@example.org and provide us with the API Key your using, and the values for the listID and customfieldkey that your using, and we can check out our logs to see what might be going wrong.
Sorry I can't give you immediate help, but I need further information to investigate further.
Thx for the follow-up Ken. I'll send an email right away.
You need to issue a PUT to update a resource, as documented:
If you issue a POST to the route to update custom field options (which expects a PUT) it will respond with a 404.
Also, it may be worthwhile using our officially supported PHP API wrapper, where this detail is abstracted, so you'll never experience this issue.
Hope that helps.
Thanks for the swift support. Not using the official PHP wrapper comes with a price I guess. All is working fine now.
Sign up for free.
Then send campaigns for as little as $9/month