Files

Delete File From Comment

curl -i -X DELETE "https://example.ziik.io/api/comments/124/files/12345"
  -H "Authorization: Bearer aaaaaa.bbbbbbb.ccccccc"

The above command returns a 204 No Content header on success:

HTTP/1.0 204 No Content

This endpoint deletes a file from a comment.

HTTP Request

DELETE https://example.ziik.io/api/comments/COMMENTID/files/FILEID

URL Parameters

ParameterTypeDescription
COMMENTIDIntegerThe ID of the comment
FILEIDIntegerThe ID of the file to delete

Permissions Required

  • Edit permission to commented content
  • OR Comment author

TIP

Authors can only remove files from comments within 15 minutes of creation.

Last Updated:
Contributors: Christian Gerdes