Creating activities
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 7, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To create activities, send an Atom entry document to the user's My Activities feed.

Discoverability

You can derive the URL from the user's service document. Find the value of the href attribute of element that contains a title element which has a value of Overview.

Usage notes

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

Input
Method URI Description
POST /activities/service/atom2/activities
Content Type: application/atom+xml
Sample Request:
<entry
    xmlns="http://www.w3.org/2005/Atom"
    xmlns:app="http://www.w3.org/2007/app"
    xmlns:snx="http://www.ibm.com/xmlns/prod/sn"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:thr="http://purl.org/syndication/thread/1.0"
  >
    <title type="text">New</title>

    <category scheme="http://www.ibm.com/xmlns/prod/sn/type" term="activity" label="Activity"/>
    <category scheme="http://www.ibm.com/xmlns/prod/sn/priority" term="1" label="Normal"/>
    <category term="tag1" />
    <category term="tag2" />
    <content type="html">
          	GoalOfActivity
     </content>
</entry>
Name Type Optional Description
Content-Type
string No The expected content type of the uploaded activity definition.
Output
Name Type Optional Description
Location
string No Link to edit_url of the new activity. You can use the web address specified here to subsequently update the activity.
Code Description
201
Indicates that the activity was successfully created. If an error occurs, this header contains one of the error codes.
400
Bad Request. Returned when no matching user record can be found.
403
Authorization failed.
References