The Basics

cmd=listArticles

Parameters
Requires ixWiki.
Example
https://kakapo.fogbugz.com/api.asp?cmd=listArticles&ixWiki=9&token=04t6193822pekbba09nt74ninuihk2
Returns
A list of articles belonging to the specified wiki.

cmd=viewArticle

Parameters
Requires ixWikiPage and optionally takes nRevision.
Example
https://kakapo.fogbugz.com/api.asp?cmd=viewArticle&ixWikiPage=11&token=04t6193822pekbba09nt74ninuihk2
Returns
Data for the selected article (defaulting to the most recent revision.)

cmd=newArticle

Parameters
Requires ixWiki and sHeadline and optionally takes sBody, dt, ixPersonEditedBy, and sTags.
Example
https://kakapo.fogbugz.com/api.asp?cmd=newArticle&ixWiki=2&sHeadline=Seven%20steps%20to%20remarkable%20customer%20service&sBody=%3Cp%3EAs%20a%20bootstrapped%20software%20company%2C%20Fog%20Creek%20couldn%E2%80%99t%20afford%20to%20hire%20customer%20service%20people%20for%20the%20first%20couple%20of%20years%2C%20so%20Michael%20and%20I%20did%20it%20ourselves.%20The%20time%20we%20spent%20helping%20customers%20took%20away%20from%20improving%20our%20software%2C%20but%20we%20learned%20a%20lot%20and%20now%20we%20have%20a%20much%20better%20customer%20service%20operation.%3C%2Fp%3E%0A%0A%3Cp%3EHere%20are%20seven%20things%20we%20learned%20about%20providing%20remarkable%20customer%20service.%20I%E2%80%99m%20using%20the%20word%20remarkable%20literally%E2%80%94the%20goal%20is%20to%20provide%20customer%20service%20so%20good%20that%20people%20remark.%3C%2Fp%3E
Returns
  ixWikiPage of the newly created wiki article.

cmd=editArticle

Parameters
Requires ixWikiPage, and optionally takes sHeadline, sBody, sComment, dt, ixPersonEditedBy, and sTags. (Does not require sBody, but omitting sBody will delete the body of the wikiArticle.)
Example
https://kakapo.fogbugz.com/api.asp?api.asp?cmd=editArticle&ixWikiPage=13&sHeadline=Seven%20Steps%20to%20Remarkable%20Customer%20Service&sBody=%3Cp%3EAs%20a%20bootstrapped%20software%20company%2C%20Fog%20Creek%20couldn%E2%80%99t%20afford%20to%20hire%20customer%20service%20people%20for%20the%20first%20couple%20of%20years%2C%20so%20Michael%20and%20I%20did%20it%20ourselves.%20The%20time%20we%20spent%20helping%20customers%20took%20away%20from%20improving%20our%20software%2C%20but%20we%20learned%20a%20lot%20and%20now%20we%20have%20a%20much%20better%20customer%20service%20operation.%3C%2Fp%3E%0A%0A%3Cp%3EHere%20are%20seven%20things%20we%20learned%20about%20providing%20remarkable%20customer%20service.%20I%E2%80%99m%20using%20the%20word%20remarkable%20literally%E2%80%94the%20goal%20is%20to%20provide%20customer%20service%20so%20good%20that%20people%20remark....%3C%2Fp%3E&token=04t6193822pekbba09nt74ninuihk2
Returns
An empty response.  

cmd=listRevisions

Parameters
Requires ixWikiPage.
Example
https://kakapo.fogbugz.com/api.asp?api.asp?cmd=listRevisions&ixWikiPage=13&token=04t6193822pekbba09nt74ninuihk2
Returns
Empty response.

List Wiki Articles (cmd=listArticles)

URL
https://kakapo.fogbugz.com/api.asp?cmd=listArticles&ixWiki=9&token=04t6193822pekbba09nt74ninuihk2
fogbugz.py
fb.listArticles(ixWiki=9)

Successful Response

XML
<response>
  <articles>
  <article>
    <ixWikiPage>6</ixWikiPage>
    <sHeadline>
      <![CDATA[ What makes a good bug report? ]]>
    </sHeadline>
  </article>
  <article>
    <ixWikiPage>8</ixWikiPage>
    <sHeadline>
      <![CDATA[ Why "Fix it Twice"? ]]>
    </sHeadline>
  </article>
  </articles>
</response>

View a Wiki Article (cmd=viewArticle)

URL
https://kakapo.fogbugz.com/api.asp?cmd=viewArticle&ixWikiPage=11&token=04t6193822pekbba09nt74ninuihk2
fogbugz.py
fb.viewArticle(ixWikiPage=11)

Successful Response

XML
<response>
  <wikipage>
    <sHeadline>
      <![CDATA[ Why "Fix it Twice"? ]]>
    </sHeadline>
    <sBody>
      <![CDATA[
        <h3 style="margin: 15px 0px; padding: 0px; font-size: 14px; font-family: 'Open Sans', Arial, sans-serif; line-height: 20px; background-color: rgb(255, 255, 255);"> The standard Lorem Ipsum passage, used since the 1500s</h3> <p style="margin-bottom: 15px; text-align: justify; font-family: 'Open Sans', Arial, sans-serif; font-size: 14px; line-height: 20px; background-color: rgb(255, 255, 255);"> "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p> <h3 style="margin: 15px 0px; padding: 0px; font-size: 14px; font-family: 'Open Sans', Arial, sans-serif; line-height: 20px; background-color: rgb(255, 255, 255);">  </h3>
      ]]>
    </sBody>
    <nRevision>3</nRevision>
    <tags/>
  </wikipage>
</response>

Create a New Wiki Article (cmd=newArticle)

URL
https://kakapo.fogbugz.com/api.asp?cmd=newArticle&ixWiki=2&sHeadline=Seven%20steps%20to%20remarkable%20customer%20service&sBody=%3Cp%3EAs%20a%20bootstrapped%20software%20company%2C%20Fog%20Creek%20couldn%E2%80%99t%20afford%20to%20hire%20customer%20service%20people%20for%20the%20first%20couple%20of%20years%2C%20so%20Michael%20and%20I%20did%20it%20ourselves.%20The%20time%20we%20spent%20helping%20customers%20took%20away%20from%20improving%20our%20software%2C%20but%20we%20learned%20a%20lot%20and%20now%20we%20have%20a%20much%20better%20customer%20service%20operation.%3C%2Fp%3E%0A%0A%3Cp%3EHere%20are%20seven%20things%20we%20learned%20about%20providing%20remarkable%20customer%20service.%20I%E2%80%99m%20using%20the%20word%20remarkable%20literally%E2%80%94the%20goal%20is%20to%20provide%20customer%20service%20so%20good%20that%20people%20remark.%3C%2Fp%3E&token=04t6193822pekbba09nt74ninuihk2
fogbugz.py
fb.newArticle(ixWiki=2, 
				sHeadline="Seven steps to remarkable customer service",
				sBody="<p>As a bootstrapped software company, Fog Creek couldn’t afford to hire customer service people for the first couple of years, so Michael and I did it ourselves. The time we spent helping customers took away from improving our software, but we learned a lot and now we have a much better customer service operation.</p><p>Here are seven things we learned about providing remarkable customer service. I’m using the word remarkable literally—the goal is to provide customer service so good that people remark.</p>")

Parameters

Requires ixWiki and optionally takessHeadline, sBody, dt, ixPersonEditedBy, and sTags.

Possible Responses

Successful Response
XML
<response>
  <wikipage>
    <ixWikiPage>13</ixWikiPage>
  </wikipage>
</response>

Edit an Existing Wiki Article (cmd=editArticle)

In this example, we’re capitalizing the title of article. We’re passing text into sBody only because failing to pass sBody into the API call will delete the body of the wiki (although the previous body will still remain in the revision history.)

URL
https://kakapo.fogbugz.com/api.asp?api.asp?cmd=editArticle&ixWikiPage=13&sHeadline=Seven%20Steps%20to%20Remarkable%20Customer%20Service&sBody=%3Cp%3EAs%20a%20bootstrapped%20software%20company%2C%20Fog%20Creek%20couldn%E2%80%99t%20afford%20to%20hire%20customer%20service%20people%20for%20the%20first%20couple%20of%20years%2C%20so%20Michael%20and%20I%20did%20it%20ourselves.%20The%20time%20we%20spent%20helping%20customers%20took%20away%20from%20improving%20our%20software%2C%20but%20we%20learned%20a%20lot%20and%20now%20we%20have%20a%20much%20better%20customer%20service%20operation.%3C%2Fp%3E%0A%0A%3Cp%3EHere%20are%20seven%20things%20we%20learned%20about%20providing%20remarkable%20customer%20service.%20I%E2%80%99m%20using%20the%20word%20remarkable%20literally%E2%80%94the%20goal%20is%20to%20provide%20customer%20service%20so%20good%20that%20people%20remark....%3C%2Fp%3E&token=04t6193822pekbba09nt74ninuihk2
fogbugz.py
fb.editArticle(ixWikiPage=13,
        sHeadline="Seven Steps to Remarkable Customer Service",
        sBody="<p>As a bootstrapped software company, Fog Creek couldn’t afford to hire customer service people for the first couple of years, so Michael and I did it ourselves. The time we spent helping customers took away from improving our software, but we learned a lot and now we have a much better customer service operation.</p><p>Here are seven things we learned about providing remarkable customer service. I’m using the word remarkable literally—the goal is to provide customer service so good that people remark....</p>"
        )

Parameters

Requires ixWiki and sHeadline and optionally takes sBody, dt, ixPersonEditedBy, and sTags. (Does not require sBody, but omitting sBody will delete the body of the wikiArticle.)

Possible Responses

Successful Response
XML
<response>
  <wikipage/>
</response>
No Such Article
XML
<response>
  <error code="4">
    <![CDATA[ Argument is required:ixWikiPage ]]>
  </error>
</response>

List Revisions (cmd=listRevisions)

URL
https://kakapo.fogbugz.com/api.asp?api.asp?cmd=listRevisions&ixWikiPage=13&token=04t6193822pekbba09nt74ninuihk2
fogbugz.py
fb.listRevisions(ixWikiPage=13)

Possible Responses

Successful Response
XML
<response>
  <revisions>
    <revision>
      <nRevision>4</nRevision>
      <ixPerson>2</ixPerson>
      <sRemoteIP/>
      <sTitle>
        <![CDATA[ Seven Steps to Remarkable Customer Service ]]>
      </sTitle>
      <sComment/>
      <fDiff>false</fDiff>
      <dt>2016-05-17T13:26:38Z</dt>
    </revision>
  </revisions>
</response>
No Such Wiki Article
XML
<response>
  <error code="14">
    <![CDATA[ This article does not exist. ]]>
  </error>
</response>