curl --request DELETE \
--url https://api.projectcor.com/v1/tasks/{task_id}/attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"attachments": [
123
],
"lastPage": 123,
"order": {
"created_at": "DESC"
}
}
'{
"deleted": true,
"elements": [
{
"id": 123,
"url": "<string>",
"size": 123,
"source": "<string>",
"user_id": 123,
"available": true,
"file_type": "<string>",
"media_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"originalname": "<string>",
"discussions_id": 123,
"parent_type": "<string>",
"name": "<string>",
"parent_id": 123,
"attachment_parent_id": 123,
"version": 123,
"status": "approved",
"currentVersionData": {},
"currentVersionId": 123,
"currentVersion": 123,
"user": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"picture": "<string>"
},
"graphicsCount": "<string>",
"taskLogReworksId": 123,
"createdFrom": "<string>"
}
]
}Deletes one or more attachments from a task.
curl --request DELETE \
--url https://api.projectcor.com/v1/tasks/{task_id}/attachments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"attachments": [
123
],
"lastPage": 123,
"order": {
"created_at": "DESC"
}
}
'{
"deleted": true,
"elements": [
{
"id": 123,
"url": "<string>",
"size": 123,
"source": "<string>",
"user_id": 123,
"available": true,
"file_type": "<string>",
"media_type": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"originalname": "<string>",
"discussions_id": 123,
"parent_type": "<string>",
"name": "<string>",
"parent_id": 123,
"attachment_parent_id": 123,
"version": 123,
"status": "approved",
"currentVersionData": {},
"currentVersionId": 123,
"currentVersion": 123,
"user": {
"id": 123,
"first_name": "<string>",
"last_name": "<string>",
"picture": "<string>"
},
"graphicsCount": "<string>",
"taskLogReworksId": 123,
"createdFrom": "<string>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the task
Was this page helpful?