Attachments

Create Attachment (from URL)

Attaches a file to a task by providing a publicly accessible URL. BugHerd downloads the file from the URL and stores a copy. For direct file uploads, use the Upload Attachment endpoint instead.

post/api_v2/projects/{project_id}/tasks/{task_id}/attachments.json

Request

  • Base URL: https://www.bugherd.com
  • URL: https://www.bugherd.com/api_v2/projects/{project_id}/tasks/{task_id}/attachments.json
  • Auth: HTTP basic

Path parameters

project_idinteger required
task_idinteger required

Request body

Response

Created attachment

Example response

{
  "attachment": {
    "id": 331,
    "file_name": "screenshot.png",
    "url": "https://bugherd.com/attachments/screenshot.png",
    "created_at": "2024-01-15T09:35:00Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.