Detach a resource from a study guide
DELETE/study-guides/:study_guide_id/resources/:resource_id
Removes the link between a resource and a guide. Does NOT delete the resource itself -- a resource may be attached to multiple guides + courses.
Authorization: the guide's creator OR the user who attached
the resource (attached_by on the join row) can detach. The
resource's own creator (if different from both) cannot detach
when they didn't attach it here.
404 covers both 'guide missing/deleted' and 'resource not attached to this guide'.
Request
Responses
- 204
- 400
- 401
- 403
- 404
- 500
Resource detached; no response body.
Bad request
Unauthorized
Forbidden
Not found
Internal server error