<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
import Foundation
import ServiceStack

public class DataItemMessage : Codable
{
    public var itemId:String
    public var itemType:String
    public var itemProvider:String
    public var relatedItemId:String
    public var relatedItemType:String
    public var relatedItemProvider:String
    public var relationStatus:ContentLifecycleStatus?
    public var fieldName:String
    public var filter:String
    public var order:String
    public var skip:Int
    public var take:Int

    required public init(){}
}

public enum ContentLifecycleStatus : Int, Codable
{
    case Master = 0
    case Temp = 1
    case Live = 2
    case Deleted = 4
    case PartialTemp = 8
}


Swift 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