Community articleCreating a wiki page programmatically
Added by IBM contributorIBM 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 (&).

 

Input


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

Output


None.
 

 

Input
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="http://www.w3.org/2005/Atom">
<title type="text">Matt's Page</title>
<content type="text"><p>This is James's wiki page.</p>
</content>
<category term="wikipagetag1" />
<category term="wikipagetag2" />
<category term="wikipagetag3" />
<category scheme="tag:ibm.com,2006:td/type" term="page" label="page" />
</entry>
Name Type Optional Description
wiki-label
string No wiki-label is the wiki to which you want to add the page.
Name Type Optional Description
draft
boolean Yes Specify "true" to mark the page as a draft, or "false" otherwise.
includeNotification
boolean Yes Specify "true" to request the metadata on notification (edit or comment added) to be included for a document entry.
sendNotification
boolean Yes Specify "true" if you want to send edit or comment notifications.
Output
Code Description
200
OK. Indicates that the request was received successfully.
401
Unauthorized. Returned when no authenticated user or no userid, email, or key parameter are provided on the request.
404
The URL could not be found.