Was this page helpful?

POST:users/{userid}/allowed

    Overview

    public. Check one or more resources if given operation is allowed.

    Uri Parameters
    NameTypeDescription
    useridstringeither an integer user ID, "current", or "=" followed by a double uri-encoded user name
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    masklong?Permission bit mask required for the pages
    operationsstring?Comma separated list of operations to verify
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    NotFound404Requested user could not be found
    Ok200The request completed successfully

    Message Format

    Input:

    <pages>
        <page id="{int}"/>
        ...
    </pages>

    Output:

    <pages>
        <page id="{int}" href="{uri}">
            <title>{text}</title>
            <path>{text}</path>
        </page>
        ...
    </pages>

    Implementation Notes

    Use GET:site/operations to retrieve a list of all operations currently defined on the site.

    Code Samples

    C# Samples

     

    Curl Samples

     

    PHP Samples

     

    Other Code Samples

     

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by