I have an API to create contentItem, but how can i assign it to other content's ListPart ? for example i have a Audio Album that has a ListPart with content type Audio Item.
currently i'm using content manager
var contentItem = await _contentManager.NewAsync("AudioItem");
await _contentManager.CreateAsync(contentItem, VersionOptions.DraftRequired);
contentItem.DisplayText = name;
await _contentManager.UpdateAsync(contentItem);
Thank you
You need to use the
WeldandAlterextensions to modify a content item.Weldwill add theContainedPart, andAlterwill changes it's value.