Community articleCreating a wiki page programmatically
Added by IBM contributorIBM | Edited by IBM contributorLDD Webmaster on July 1, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Create a wiki page programmatically.

Create a wiki page programmatically.

See Authenticating requests for information about how to authenticate the request.

You can use one or more of these input parameters with the PUT request. Separate multiple parameters with an ampersand (&).



Provide a wiki page Atom entry document. The content type of the Atom entry document must be application/atom+xml.




Method URI Description
POST /wikis/basic/api/wiki/{wiki-label}/feed Creates a wiki page. Note: {wiki-label} is the wiki to which you want to add the page.
Content Type: application/atom+xml
Sample Request:
<entry xmlns="">
<title type="text">Matt's Page</title>
<content type="text"><p>This is James's wiki page.</p>
<category term="wikipagetag1" />
<category term="wikipagetag2" />
<category term="wikipagetag3" />
<category scheme=",2006:td/type" term="page" label="page" />
Name Type Optional Description
string No wiki-label is the wiki to which you want to add the page.
Name Type Optional Description
boolean Yes Specify "true" to mark the page as a draft, or "false" otherwise.
boolean Yes Specify "true" to request the metadata on notification (edit or comment added) to be included for a document entry.
boolean Yes Specify "true" if you want to send edit or comment notifications.
Code Description
OK. Indicates that the request was received successfully.
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
The URL could not be found.