Authorization: Bearer ********************
curl --location -g --request DELETE 'https://open.pingcode.com/v1/attachments/{attachment_id}?principal_type=work_item&principal_id={work_item_id}'
{
"id": "5da588ca84c7377a5d327e6c",
"url": "https://rest_api_root/v1/attachments/5da588ca84c7377a5d327e6c?principal_type=work_item&principal_id=5edca524cad2fa1125cb0630",
"title": "这是一个图片类型的附件",
"size": 1024,
"type": "file",
"file_type": "image",
"ext": "png",
"download_url": "https://s3.amazonaws.com/bucket/b46ef40c-e22e-4ecf-a599-cace9fba839a.png",
"created_at": 1583290347,
"created_by": {
"id": "a0417f68e846aae315c85d24643678a9",
"url": "https://rest_api_root/v1/directory/users/a0417f68e846aae315c85d24643678a9",
"name": "john",
"display_name": "John",
"avatar": "https://s3.amazonaws.com/bucket/b46ef40c-e22e-4ecf-a599-cace9fba839a_160x160.png"
}
}