<back to all web services

RelationChangeMessage

The following routes are available for this service:
PUT/RestApi/sitefinity/related-data/relations
import java.math.*
import java.util.*
import net.servicestack.client.*


open class RelationChangeMessage
{
    var ItemId:String? = null
    var ItemType:String? = null
    var ItemProvider:String? = null
    var RelationChanges:ArrayList<ContentLinkChange>? = null
}

@DataContract
open class ContentLinkChange
{
    @DataMember
    var State:ContentLinkChangeState? = null

    @DataMember
    var ChildItemId:UUID? = null

    @DataMember
    var ChildItemProviderName:String? = null

    @DataMember
    var ChildItemType:String? = null

    @DataMember
    var ChildItemAdditionalInfo:String? = null

    @DataMember
    var Ordinal:Float? = null

    @DataMember
    var ComponentPropertyName:String? = null
}

@DataContract
enum class ContentLinkChangeState
{
    Added,
    Removed,
    Updated,
}

Kotlin RelationChangeMessage DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

PUT /RestApi/sitefinity/related-data/relations HTTP/1.1 
Host: www.asg.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ItemId":"String","ItemType":"String","ItemProvider":"String","RelationChanges":[{"State":"Added","ChildItemProviderName":"String","ChildItemType":"String","ChildItemAdditionalInfo":"String","Ordinal":0,"ComponentPropertyName":"String","IsChildDeleted":false}]}