Skip to main content

Detach a file from a study guide

DELETE 

/study-guides/:study_guide_id/files/:file_id

Removes the link between a file and a guide. Does NOT delete the file itself -- a file may be attached to many guides / courses.

Dual-authz: viewer must be EITHER the file owner OR the study guide creator. Broader than POST (which requires file owner only) so a guide creator can curate their guide's attached files without owning every file.

404 covers both 'guide missing/deleted' and 'file not attached to this guide'.

Request

Responses

File detached; no response body.