Test API doc page

    POST:pages/{pageid}/comments

    Overview

    public. Post a new comment to a page

    Uri Parameters
    Name Type Description
    pageid string either an integer page ID, "home", or "=" followed by a double uri-encoded page title
    Query Parameters
    Name Type Description
    authenticate bool? Force authentication for request (default: false)
    title string? Title for comment
    Return Codes
    Name Value Description
    BadRequest 400 Invalid input parameter or request body (must be text MIME type)
    Forbidden 403 Update access to the page is required
    NotFound 404 The requested page could not be found
    Ok 200 The request completed successfully

    Message Format

    Input: 
    Content-type=text/plain

    Output:

    <comment id="{int}" href="{uri}">
        <page.parent id="{uri}" href="{uri}">
            <title>{text}</title> 
            <path>{text}</path> 
        </page.parent>
        <user.createdby id="{int}" href="{uri}">
            <nick>{text}</nick> 
            <username>{text}</username> 
            <email>{text}</email> 
        </user.createdby>
        <date.posted>{date}</date.posted> 
        <title>{text}</title> 
        <number>{int}</number> 
        <content type="{mimetype}" href="{uri}">{text}</content> 
    </comment>

    Implementation Notes

    Use PUT:pages/{pageid}/comments/{commentnumber}/content to update an existing comment.

    Code Samples

    C# Code Samples

     

    PHP Code Samples

     

    Perl Code Samples

     

    Tag page
    Viewing 2 of 2 comments: view all
    Hey Corey - Test from pete
    Posted 09:59, 11 Nov 2010
    test from pete
    Posted 09:03, 22 Nov 2010
    Viewing 2 of 2 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by