pentacent / keila

Open Source Newsletter Tool.
https://keila.io
GNU Affero General Public License v3.0
1.45k stars 81 forks source link

Set preview text of campaign via API #306

Open dompie opened 5 months ago

dompie commented 5 months ago

I would like to set the preview text of a campaign via API. When I try it currently via the POST campaign endpoint, I get the following error:

Client error: `POST http://ops-keila-1:4000/api/v1/campaigns` resulted in a `400 Bad Request` response:  
{"errors":[{"pointer":"/data/preview_text","status":"400","title":"Unexpected field"}]}