Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Updating Content Types

Updating Content Types

Using the Administration API in combination with master key authentication you can update existing content type objects from your code.

You can update the Name and the Title of a content type. Note that once you change the name of a content type, its endpoint for data manipulation is instantly changed as well. All requests to the previous endpoint will fail.

//Ajax request using jQuery
var object = {
    "Name": "UpdatedType",
    "Title": "Updated Title"
};

$.ajax({
    url: 'https://api.everlive.com/v1/Metadata/Applications/your-app-id/Types/type-name',
    type: "PUT",
    headers:
    {
        "Authorization" : "Masterkey your-master-key"
    },
    contentType: "application/json",
    data: JSON.stringify(object),
    success: function(data){
        alert(JSON.stringify(data));
    },
    error: function(error){
        alert(JSON.stringify(error));
    }
})
Request:
    PUT https://api.everlive.com/v1/Metadata/Applications/your-app-id/Types/type-name
Headers:
    Authorization  Masterkey your-master-key
    Content-Type: application/json
Payload - raw:
    { "Name": "UpdatedType", "Title": "Updated Title" }
Response:
    Status: 200 OK
    Content-Type: application/json
    {
    "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.