Community articleSending a broadcast mail to a community
Added by IBM contributorIBM on March 17, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Sending a broadcast mail to a community
Tags: commapi

To send a broadcast mail to a community, send an Atom entry document containing the mail to the community broadcasts list resource.
See Authenticating requests for information about how to authenticate the request.

Input

Provide a broadcast Atom entry document.

Note: The content type of the Atom entry document must be application/atom+xml.

Output

An Atom entry document containing the broadcast content.

Input
Method URI Description
POST /communities/service/atom/community/broadcasts Value of the href attribute of the <link> element with the rel="http://www.ibm.com/xmlns/prod/sn/community-broadcasts" attribute value for each community.
Content Type: application/atom+xml
Sample Request:
<?xml version="1.0" encoding="UTF-8"?>

<entry 

 xmlns="http://www.w3.org/2005/Atom">

<title type="html">Broadcast mail</title>

<content type="text">Broadcast test </content>

</entry>
Name Type Optional Description
communityUuid
string No The UUID of the community you are sending the mail to.
Output
Content Type: application/atom+xml
Code Description
201
Created. Indicates that the broadcast was successfully sent. If an error occurs, this header contains one of the error codes.
403
Unauthorized
404
Not Found.
References