Requests - Note attachments API
Requests - Note attachments API
Section titled “Requests - Note attachments API”List note attachments of a request
Section titled “List note attachments of a request”List all attachments of all notes of a request with a specific ID.
GET /requests/:id/note_attachmentsResponse
Section titled “Response”Status: 200 OK[ { "id": 3, "created_at": "2024-03-14T07:27:40-05:00", "name": "my-attachment.txt", "key": "attachments/5/2024/03/14/6/1710433637.372055-976f080fe40a9f78f087bdbb268dc9bd671532f4178249e41e1d9eda4633e0c4/my-attachment.txt", "uri": "https://...", "inline": false, "size": 147491, "account": { "id": "weu-it", "name": "Widget Europe - IT" }, "nodeID": "...", "note": { "id": 3849, "nodeID": "..." } }, "..."]The response contains these fields by default.
Collection Fields
Section titled “Collection Fields”By default the following fields will appear in collections of note attachments:
created_at
id
inline
key
name
note
size
uri
Obtain a different set of
fields
using the
?fields= parameter
.
The
note
field will always be present, regardless of the value of the
fields
parameter.
Sorting
Section titled “Sorting”The collection of note attachments is sorted
ascending
by
id
.
The following fields are accepted by the ?sort= parameter :
id
created_at
Fields
Section titled “Fields”created_at
Readonly datetime — The date and time at which the attachment was created.
id
Readonly integer — The unique ID of the attachment.
inline
Readonly boolean — Whether the attachment is an inline image.
key
Readonly string — Storage key of the attachment. When the attachment is an inline image, the key can be used to match the attachment to an inline image included in the related note.
name
Readonly string — The filename of the attachment.
note
Readonly reference to Note — The note that this attachment is related to.
size
Readonly integer — The size in bytes of the attachment.
uri
Readonly string — An expiring URL that can be used to access the attachment for a limited time.