ContentController.UploadAndReplaceAttachments Method

Namespace:
Weavy.Web.Api.Controllers
Assembly:
Weavy.Web.dll

UploadAndReplaceAttachments(int, UploadIn)

Replace existing attachments with the specified blobs.

public IEnumerable<Attachment> UploadAndReplaceAttachments(int id, UploadIn model)

Parameters

id
int

Id of content item where attachments should be uploaded.

model
UploadIn

Model with id of blobs to insert (while replacing existing attachments with same names).

Returns

System.Collections.Generic.IEnumerable

The attachments that were inserted and/or replaced.