Skip to main content

Delete cell attachment

Request

curl -vvv -X DELETE "$API_HOST/open/api/v1/tablenodes/$table_id/rows/$row_id/cells/$column_id/attachments/$attchment_id/" -H "Content-Type: application/json" -H "Authorization: $access-token"   

Python example

def del_attachment(access_token, table_id, row_id, column_id, attachment_id):
url = '%s/open/api/v1/tablenodes/%d/rows/%s/cells/%s/attachments/%s/' %( API_HOST, table_id, row_id,column_id,attachment_id)
headers = {'Authorization': access_token}
req = requests.delete(url, headers=headers)
return req.json()

Response

NameTypeDescription
detailobjectattachment info
∟ attachmentsarrayattachment array
∟ columnIDstringcolumn id
∟ fileIDstringfile id
∟ projectIDint64project id
∟ rowIDstringrow id
∟ tableNodeIDint64table id

Response example

{
"code": 0,
"detail": {
"attachments": null,
"columnID": "645f6d304444eb50dc9d63c6",
"fileID": "clatxt69zta8",
"projectID": 2,
"rowID": "6457589faf1c21691b34dab3",
"tableNodeID": 40
},
"extra": null,
"message": "OK",
"requestID": null
}