Create campaigns in DRAFT mode from the API

Discussion in 'Common issues' started by Robin, Aug 13, 2019.

  1. Robin

    Robin New Member

    Joined:
    Aug 5, 2019
    Messages:
    4
    Likes Received:
    0
    S.E:
    2020-08-04 02:55:42
    L.T:
    Regular
    L.C:
    2
    Hello,

    I am looking for a way to create campaigns from the API but not send them just yet. I simply would like them to remain in draft mode until someone manually schedule them in Mailwizz. Can't find any way to do it (since the "send_at" parameter is required in the API). Any suggestions?

    Many thanks!
     
  2. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,255
    Likes Received:
    2,382
    @Robin - unfortunately you can't do this via the API yet, sorry for that.
    You can schedule it in the future, like over 10 years for example, this way your staff members will know they need to edit it.
     
  3. Robin

    Robin New Member

    Joined:
    Aug 5, 2019
    Messages:
    4
    Likes Received:
    0
    S.E:
    2020-08-04 02:55:42
    L.T:
    Regular
    L.C:
    2
    Hi @twisted1919, thank you. However while waiting for your response I looked in the code and tried adding 'status' => 'draft' with my API request call and it actually worked. I could also select a campaign group this way (by adding group_uid) even though these aren't documented parameters. Do you see any problems with using the API like this? (Also, I love answering my own questions ;))
     
    Last edited: Aug 13, 2019
  4. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,255
    Likes Received:
    2,382
    The reason they are not documented is because we haven't decided if this should be allowed from the api or not, so instead of blocking things, we simply left them "hidden". We have yet to decide, but if it works for you, then that's nice, keep using it.
     

Share This Page