Mautic Community Forums

EMAIL API ISSUE

Regarding Mautic Email API.



API:

  1. Email API, Edit Email (HttpPatch)
  2. Email API, Create Email



    Problem: Failed to edit the lists (array of segment ids), I’m using Postman. Edit along with other fields like "subject ", “isPublished”, these fields are being updated but not the “lists” field.



    Tried many ways using x-www-form-urlencoded like below

    KEY VALUE RESULT

    lists[] 1 email object is returned, success, but lists field not updated

    lists[0] 1 email object is returned, success, but lists field not updated

    lists 1 error code 400, value is not valid



    And json format also not helping.

    “lists[]”: 1 email object is returned, success, but lists field not updated

    "lists[0]: 1 email object is returned, success, but lists field not updated

    "lists: 1 error code 400, value is not valid



    Need help on this, thanks.

Regarding Mautic Email API.

API:

  1. Email API, Edit Email (HttpPatch)
  2. Email API, Create Email

Problem: Failed to edit the lists (array of segment ids), I’m using Postman. Edit along with other fields like "subject ", “isPublished”, these fields are being updated but not the “lists” field.

Tried many ways using x-www-form-urlencoded like below
KEY VALUE RESULT
lists[] 1 email object is returned, success, but lists field not updated
lists[0] 1 email object is returned, success, but lists field not updated
lists 1 error code 400, value is not valid

And json format also not helping.
“lists[]”: 1 email object is returned, success, but lists field not updated
"lists[0]: 1 email object is returned, success, but lists field not updated
"lists: 1 error code 400, value is not valid

Need help on this, thanks.