Was this page helpful?

PUT:site/roles/{roleid}

    Overview

    public. Modify or add a role

    Uri Parameters
    NameTypeDescription
    roleidstringeither an integer role ID or "=" followed by a double uri-encoded role name
    Query Parameters
    NameTypeDescription
    authenticatebool?Force authentication for request (default: false)
    Return Codes
    NameValueDescription
    BadRequest400Invalid input parameter or request body
    Forbidden403Administrator access is required
    NotFound404Requested role could not be found
    Ok200The request completed successfully

    Message Format

    Input:

    <permissions>
        <operations>{text}</operations> 
    </permissions>

    Output:

    <permissions>
        <operations mask="{int}">{text}</operations> 
        <role id="{int}" href="{uri}">{text}</role> 
    </permissions>

    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