Remove an Attachment

Use the RemoveAttachment endpoint to remove a file from a board record.

RemoveAttachment endpoint description
Description Removes an attachment from a board
URL /board/[boardname]/input/[inputviewname]/[dataId]/removeattachment/[attachmentfieldname]
Method POST
Parameters
  • boardname

  • inputviewname

  • dataid

  • attachmentfieldname

Review the parameter definitions and examples of how to use the RemoveAttachment endpoint in JavaScript and C# calls.

Parameters

RemoveAttachment endpoint parameters
Variable Name Type Description Required
boardname String Name of the board from which the attachment will be removed True (URL)
inputviewname String Name of the view that contains the input fields for the record type True (URL)
dataid Integer Unique ID of the record from which you want to remove the attachment. True (URL)
attachmentfieldname String Name of the field associated with the record True (URL)

Examples

JavaScript Call

Copy Code
await fetch(`${baseUrl}/board/Pressrelease/input/Input/1/removeattachment/press_release`, {
method: 'POST'
})

C# Call

Copy Code
public async Task RemoveAttachment()
{
using (var httpClient = new HttpClient(httpClientHandler))
{
await httpClient.PostAsync($"{baseUrl}/board/Press release/input/Input/1/removeattachment/press_release", null);
}
}