Get an Attachment
Use the GetOperation endpoint to retrieve an attachment from a specific board record.
| Description | Returns an attachment related to a board record |
|---|---|
| URL | /board/[boardname]/display/[displayviewname]/[dataid]/attachment/[attachmentfieldname] |
| Method | GET |
| Parameters |
|
Review the parameter definitions and examples of how to use the GetOperation endpoint in JavaScript and C# calls.
Parameters
| Variable Name | Type | Description | Required |
|---|---|---|---|
| boardname | String | Name of the board that contains the record associated with the attachment you want to retrieve | True (URL) |
| displayviewname | String | Name of the view that displays the record with which the attachment is associated | True (URL) |
| dataid | Integer | Unique ID of the record with which the attachment is associated | True (URL) |
| attachmentfieldname | String | Name of the input field associated with the attachment | True (URL) |
Examples
JavaScript Call
Copy Code
await fetch(`${baseUrl}/board/PressRelease/display/List/1/attachment/press_release`)
.then((response) => response.text())
C# Call
Copy Code
public async Task<byte[]> GetAttachment()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
var response = await httpClient.GetAsync($"{baseUrl}/board/Press Release/display/List/1/attachment/press_release");
return await response.Content.ReadAsByteArrayAsync();
}
}