Changing a Role Name

Changing a Role Name

The Backend Services RESTful API allows you to change the name of an existing role using an HTTP request. The operation requires Master Key authentication.

To change the name of a role you need to execute the following PUT requests, specifying a new "Name" in the payload. You can update only a single role at a time using its ID.

$.ajax({
    type: "PUT",
    url: 'https://api.everlive.com/v1/Metadata/Applications/project-id/Roles/item-id',
    headers: { "Authorization" : "Masterkey your-master-key" },
    contentType: "application/json",
    data: JSON.Stringify({ "Name" : "NewRoleName" }),
    success: function(data){
        alert(JSON.stringify(data));
    },
    error: function(error){
        alert(JSON.stringify(error));
    }
})
Request:
    PUT https://api.everlive.com/v1/Metadata/Applications/project-id/Roles/item-id
Headers:
    Authorization  Masterkey your-master-key
    Content-Type: application/json
Payload - raw:
    {
        "Name" : "NewRoleName"
    },
Response:
    Status: 200 OK
    Content-Type: application/json

On success, you receive the following response:

STATUS 200 OK
{
    "ModifiedAt": "2015-07-06T12:07:58.973Z",
    "Result": 1
}

See Also

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.