Table of Contents

Interface IAttachmentRESTClient

Namespace
FoundationaLLM.Client.Core.Interfaces
Assembly
FoundationaLLM.Client.Core.dll

Provides methods to manage calls to the Core API's Attachments endpoints.

public interface IAttachmentRESTClient
Extension Methods

Methods

UploadAttachmentAsync(Stream, string, string)

Uploads a file attachment to the Core API.

Task<string> UploadAttachmentAsync(Stream fileStream, string fileName, string contentType)

Parameters

fileStream Stream

The file contents of the new Attachment resource.

fileName string

The name of the file.

contentType string

The Content-Type header value of a valid mime type that is used to create a new MediaTypeHeaderValue as part of the MultipartFormDataContent sent to the API endpoint.

Returns

Task<string>

The Object ID of the Attachment Resource Provider created from the filestream.