Overview
Manage file attachments on work items and Intake work items. You can upload new attachments and retrieve existing attachments for a specific work item.
Upload process
- Get the upload credentials.
- Upload the file to storage.
- Complete attachment upload to notify the server.
The attachment object
Attributes
idstringUnique identifier for the attachment
created_at,updated_at,deleted_attimestampWhen the attachment was created, last modified, and deleted
attributesobjectContains file metadata:
namestring
Original filename of the attachment
sizeinteger
File size in bytes
typestring
MIME type of the file
assetstringStorage path/identifier for the attachment file
entity_typestringAlways
ISSUE_ATTACHMENTfor work item attachmentsentity_identifierstringEntity identifier for the attachment
is_deletedbooleanWhether the attachment has been deleted
is_archivedbooleanWhether the attachment has been archived
external_idstring or nullExternal identifier if the issue and its attachments are imported to Plane
external_sourcestring or nullName of the source if the issue and its attachments are imported to Plane
sizeintegerFile size in bytes
is_uploadedbooleanWhether the file has been successfully uploaded
storage_metadataobjectCloud storage metadata:
ETagstring
Storage provider's entity tag
Metadataobject
Additional storage metadata
ContentTypeobject
MIME type of the stored file
LastModifiedtimestamp
Last modification time in storage
ContentLengthinteger
File size in bytes
created_bystringID of the user who created the attachment
updated_bystringID of the user who last modified the attachment
deleted_bystringID of the user who deleted the attachment
workspacestringID of the workspace that contains the attachment
projectstringID of the project that contains the work item
issuestringID of the work item the attachment belongs to
userstringID of the user associated with the attachment
draft_issuestringID of the draft work item, if any
commentstringID of the comment, if the attachment belongs to a comment
pagestringID of the page, if the attachment belongs to a page
{
"id": "8caf3ed5-4f57-9674-76c4fce146b2",
"created_at": "2024-10-30T09:32:32.815273Z",
"updated_at": "2024-10-30T09:32:35.533136Z",
"deleted_at": null,
"attributes": {
"name": "plane-logo.png",
"size": 135686,
"type": "image/png"
},
"asset": "9b8aab8a-9052-fc735350abe8/6893d862ecb740d4b7f9f6542cda539c-plane.png",
"entity_type": "ISSUE_ATTACHMENT",
"is_deleted": false,
"is_archived": false,
"external_id": null,
"external_source": null,
"size": 135686.0,
"is_uploaded": true,
"storage_metadata": {
"ETag": "\"72d0d4be99999fe60c2fbc08c8b\"",
"Metadata": {},
"ContentType": "image/png",
"LastModified": "2024-10-30T09:32:34+00:00",
"ContentLength": 135686
},
"created_by": "575de6bf-e120-43bb-9f6a-eae276210575",
"updated_by": "575de6bf-e120-43bb-9f6a-eae276210575",
"workspace": "9b8aab8a-9s6a-99ac-fc735350abe8",
"project": "1790bd-5262-42fb-ac55-568c19a5",
"issue": "7ba090-7702-4e26-a61e-aa6b866f7"
}
