Home
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.
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.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 will contain one of the error codes below.
- 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.
Related reference