You are here: Communications Cloud API v1 > Resources > Bulletins > Update a Bulletin

Update a Bulletin

PUT to /api/account/ACCOUNT_CODE/bulletins/BULLETIN_ID.xml

Example Input
<bulletin>
    <body><![CDATA[<p>BODY in <b>cdata tag</b></p>]]></body>
    <publish_rss type='boolean'>false</publish_rss>
    <open_tracking type='boolean'>true</open_tracking>
    <click_tracking type='boolean'>true</click_tracking>
    <header>ENTER HEADER</header>
    <subject>ENTER SUBJECT</subject>
    <share_content_enabled type='boolean'>true</share_content_enabled>
    <footer>ENTER FOOTER</footer>
    <from_address_id>####</from_address_id>
    <sms_body nil='true'></sms_body>
    <topics type='array'>
      <topic>
        <code>####</code>
      </topic>
      <topic>
        <code>####</code>
      </topic>
    </topics>
    <categories type='array' />
  </bulletin>
Bulletin Content

Specify the content for your bulletin in the <header>, <footer>, and <body> elements. You can specify HTML formatting by using CDATA blocks. Text inside a CDATA section is not parsed, and this allows you to include characters necessary for HTML, like "<" and ">" without generating an XML error.

If you do not include these elements in the payload, the content will come from whatever template is used. For bulletins sent for one topic, that's the topic bulletin template. For bulletins sent for more than one topic or for a category, it's the general bulletin template. Both templates are configured in the administrative interface. Learn more about Bulletin Templates.

If you want to update a bulletin's attachment, use one of the following methods: Add a Bulletin Attachment, Remove a Bulletin Attachment, or Update a Bulletin Attachment.

Elements
Example Output
<?xml version="1.0" encoding="UTF-8"?>
  <bulletin>
    <to-param>39783</to-param>
    <bulletin-uri>/api/account/ACCOUNT_NAME/bulletins/39783.xml</bulletin-uri>
    <send-uri>/api/account/ACCOUNT_NAME/bulletins/39783/send_now</send-uri>
  </bulletin>
Troubleshooting

If you enter any invalid topic or category codes, these are discarded. If you have multiple topics or categories entered for this bulletin, only the valid ones will be applied. If no valid codes are provided in the payload, then the API will return an error.

Reference bulletin error codes

 

Was this page helpful? Can't find what you need? Let us know