Create activities
To create an activity, send an Atom entry document containing the new activity to the user's My Activities feed.See Authenticating requests for information about how to authenticate the request.
Table 1. Atom API request details
Method Resource URI Input representation POST User's My Activities feed From the user's service document, the value of the href attribute of <collection> element that contains a <title> element which has a value of Overview. activity
Input
Provide an activity entry type as the Atom entry document.Note: The content type of the Atom entry document must be application/atom+xml.
Output
None.Returned HTTP headers
HTTP/1.1 201 Created
Indicates that the activity was successfully created. If an error occurs, this header contains one of the error codes.
Location: url
Link to edit_url of the new activity. You can use the web address specified here to subsequently update the activity.
- HTTP/1.1 400 Bad Request
- HTTP/1.1 403 Forbidden: Authorization failed.
Parent topic
Work with activities programmaticallyRelated reference
Activity content
});