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
StreamThe file contents of the new Attachment resource.
fileName
stringThe name of the file.
contentType
stringThe 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.