Community articleWorking with entry templates programmatically
Added by IBM contributorIBM on December 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Using the Atom Publishing Protocol, also known as AtomPub, you can create, update, and delete entry templates. An entry template is a prototype of an activity entry. You can create a template, and then use it to create multiple custom entries. Entry templates are available within the activity in which they were created only; they cannot be shared across activities.



Using the Atom Publishing Protocol, also known as AtomPub, you can create, update, and delete entry templates. An entry template is a prototype of an activity entry. You can create a template, and then use it to create multiple custom entries. Entry templates are available within the activity in which they were created only; they cannot be shared across activities.
Creating an entry template programmatically
To create an entry template, create or retrieve an entry, edit its Atom entry document, and then send a post request to pass the document to the server as a multipart post.

Retrieving entry templates
To retrieve an entry template, use the templates link in the activity feed or the activity node list.

Updating entry templates
To update an entry template, send a replacement Atom document containing the modified entry template to the edit link for the existing entry template.

Deleting entry templates
To delete an entry template, send an HTTP DELETE method to the edit link for the entry template.