Update an attachment
PATCH/api/v1/workspaces/{slug}/projects/{project_id}/work-items/{issue_id}/attachments/{pk}/
Mark an attachment as uploaded after successful file transfer to storage.
Path Parameters
issue_id:requiredstringIssue id.
pk:requiredstringAttachment ID
project_id:requiredstringProject ID
slug:requiredstringWorkspace slug
Body Parameters
is_uploaded:optionalbooleanMark attachment as uploaded
Scopes
projects.work_items.attachments:write
Update an attachment
bash
curl -X PATCH \
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/attachments/550e8400-e29b-41d4-a716-446655440000/" \
-H "X-API-Key: $PLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"is_uploaded": true
}'python
import requests
response = requests.patch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/attachments/550e8400-e29b-41d4-a716-446655440000/",
headers={"X-API-Key": "your-api-key"},
json={
"is_uploaded": true
}
)
print(response.status_code)javascript
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/attachments/550e8400-e29b-41d4-a716-446655440000/",
{
method: "PATCH",
headers: {
"X-API-Key": "your-api-key",
"Content-Type": "application/json",
},
body: JSON.stringify({
is_uploaded: true,
}),
}
);
console.log(response.status);Response204
No response body.

