Loading...
Area: Episerver Service API
Applies to versions: 1 and higher

Catalog entry node relations

Recommended reading 

This topic describes how to work with RESTful operations for catalog entry node relations in the Episerver Service API.

In this topic

Example models

[Serializable]
public class NodeEntryRelation
  {
    public int SortOrder { get; set; }
    public string NodeCode { get; set; }
    public string EntryCode { get; set; }
    public bool? IsPrimary { get; set; } //Optinal, if missing will be treated as False
  }

Get All Entry Node Relations

/episerverapi/commerce/entries/{entry code}/nodeentryrelations

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Get Entry Node Relation

/episerverapi/commerce/entries/{entry code}/nodeentryrelations/{node code}

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Post Entry Node Relation

/episerverapi/commerce/entries/{entry code}/nodeentryrelations

Note: Setting a NodeEntryRelation with IsPrimary = true makes the current primary relation for that entry non-primary.

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Put Entry Node Relation

/episerverapi/commerce/entries/{entry code}/nodeentryrelations/{node code}

Note: Setting a NodeEntryRelation with IsPrimary = true makes the current primary relation for that entry non-primary.

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Delete Entry Node Relation

/episerverapi/commerce/entries/{entry code}/nodeentryrelations/{node code}

Client Code Media Type JSON

Response JSON

Client Code Media Type XML

Response XML

Related topics

Do you find this information helpful? Please log in to provide feedback.

Last updated: Oct 04, 2017

Recommended reading