Changing the Item Owner

Changing the Item Owner

The Backend Services RESTful API allows you to change a content type item owner from any application that can make HTTP requests.

To change the owner of a content type item, pass a JSON object containing the new owner ID as a payload to the _owner endpoint. You need to use either Master Key authorization or the current owning user account.

var owner = {
    Owner: user-id-here
};
$.ajax({
    type: "PUT",
    url: 'https://api.everlive.com/v1/your-app-id/type-name/item-id/_owner',
    headers: { "Authorization" : "Masterkey your-master-key" },
    contentType: "application/json",
    data: JSON.stringify(owner),
    success: function(data){
        alert(JSON.stringify(data));
    },
    error: function(error){
        alert(JSON.stringify(error));
    }
});
Request:
    PUT https://api.everlive.com/v1/your-app-id/type-name/item-id/_owner 
Headers:
    Authorization  Masterkey your-master-key
    Content-Type application/json 
Payload - raw:
    {
        "Owner": "user-id-here"
    } 
Response:
    Status: 200 OK
    Content-Type: application/json

On successful execution you get the following result:

STATUS 200 OK
{
    "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.