Attachments

Create an attachment on a custom attachment field

Changed on

Files can be uploaded to Aha! as a sub-resource on any resource that supports them. These resources support attachments:

  • Record descriptions (the description of a feature, requirement, etc.)
  • Comments
  • To-dos
  • Custom note fields

The format of an attachment is either a multipart/form-data upload with the input name attachment[data] or a JSON payload pointing to an URL link:

{
  "attachment": {
    "file_url": "https://www.aha.io/",
    "content_type": "text/html",
    "file_name": "home_page.html"
  }
}
post/custom_field_values/{custom_field_value_id}/attachments

Request

Path parameters

custom_field_value_idstring required

CustomFieldValueId identifier

Request body multipart/form-data

attachment[data]string binary

File to upload

Response

Successful operation

Example response

{
  "attachment": {
    "id": "6776881149492544916",
    "download_url": "https://company.aha.io/attachments/6776881149492544916/token/5e0c518000a14554.download?size=original",
    "created_at": "2019-01-01T00:00:00.000Z",
    "updated_at": "2019-01-01T00:00:00.000Z",
    "original_file_size": 0,
    "content_type": "text/html",
    "file_name": "home_page.html",
    "file_size": 0
  }
}

Changes