<back to all web services

RelationChangeMessage

The following routes are available for this service:
PUT/RestApi/sitefinity/related-data/relations
RelationChangeMessage Parameters:
NameParameterData TypeRequiredDescription
ItemIdbodystringNo
ItemTypebodystringNo
ItemProviderbodystringNo
RelationChangesbodyContentLinkChange[]No
ContentLinkChange Parameters:
NameParameterData TypeRequiredDescription
StateformContentLinkChangeStateNo
ChildItemIdformGuidNo
ChildItemProviderNameformstringNo
ChildItemTypeformstringNo
ChildItemAdditionalInfoformstringNo
Ordinalformfloat?No
ComponentPropertyNameformstringNo
ContentLinkChangeState Enum:
Added
Removed
Updated

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

HTTP + CSV

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: text/csv
Content-Type: text/csv
Content-Length: length

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