<back to all web services

DataItemMessage

The following routes are available for this service:
GET/RestApi/sitefinity/generic-data/data-items
DELETE/RestApi/sitefinity/generic-data/temp-items
"use strict";
/** @typedef {number} */
export var ContentLifecycleStatus;
(function (ContentLifecycleStatus) {
    ContentLifecycleStatus[ContentLifecycleStatus["Master"] = 0] = "Master"
    ContentLifecycleStatus[ContentLifecycleStatus["Temp"] = 1] = "Temp"
    ContentLifecycleStatus[ContentLifecycleStatus["Live"] = 2] = "Live"
    ContentLifecycleStatus[ContentLifecycleStatus["Deleted"] = 4] = "Deleted"
    ContentLifecycleStatus[ContentLifecycleStatus["PartialTemp"] = 8] = "PartialTemp"
})(ContentLifecycleStatus || (ContentLifecycleStatus = {}));
export class DataItemMessage {
    /** @param {{ItemId?:string,ItemType?:string,ItemProvider?:string,RelatedItemId?:string,RelatedItemType?:string,RelatedItemProvider?:string,RelationStatus?:ContentLifecycleStatus,FieldName?:string,Filter?:string,Order?:string,Skip?:number,Take?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    ItemId;
    /** @type {string} */
    ItemType;
    /** @type {string} */
    ItemProvider;
    /** @type {string} */
    RelatedItemId;
    /** @type {string} */
    RelatedItemType;
    /** @type {string} */
    RelatedItemProvider;
    /** @type {?ContentLifecycleStatus} */
    RelationStatus;
    /** @type {string} */
    FieldName;
    /** @type {string} */
    Filter;
    /** @type {string} */
    Order;
    /** @type {number} */
    Skip;
    /** @type {number} */
    Take;
}

JavaScript DataItemMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/sitefinity/generic-data/data-items HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl