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
|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|
Provide an activity entry type as the Atom entry document.
The content type of the Atom entry document must be application/atom+xml
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.Error codes
- HTTP/1.1 400 Bad Request
- HTTP/1.1 403 Forbidden: Authorization failed.
Parent topic: Working with activities programmatically