Grant a permission on a study guide (ASK-211)
POST/study-guides/:study_guide_id/grants
Creates a new study_guide_grants row scoped to
(study_guide_id, grantee_type, grantee_id, permission).
Only the guide's creator may create grants. A duplicate
grant returns 409 Conflict. grantee_type is limited to
user or course -- study guides cannot grant access to
other study guides (the table enforces this via a CHECK
constraint).
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 409
- 500
Grant created
Bad request
Unauthorized
Forbidden
Not found
Conflict with current resource state
Internal server error