To create an activity from an activity template, send an edited Atom entry document for the activity template to the user's My Activities feed.
Table 1. Atom API request details
You can derive the URL from the user's service document. Find the value of the href attribute of <collection> element that contains a <title> element which has a value of Overview.
- Retrieve the Atom entry document representing the template from which you want to create the activity. See Retrieving entry templates.
- Open the Atom entry document, and then remove the following element:
- You can edit the title of the template to reflect the name of the activity that you want to create.
- Send the updated Atom entry document with the POST request to create the activity.
The content type of the Atom entry document must be application/atom+xml
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.400
Request was not recognized.403
Authorization failed.Parent topic: Working with activities programmatically