Reviews
Create or update a user's review for a resource. You cannot create multiple reviews for a single user on a resource. If a user tries to create a second review on a resource it will just update their first review. You must provide a textual review, rating, or both. A 200 status code is returned upon a successful update and a 201 status code is returned on successful creation.
Example:
curl -X PUT -H "X-Session-ID: 0123456789" -H "Content-Type:application/json" --data @data.json "https://lor.instructure.com/api/resources/9cd972bef89b9fc7de6357a473f845db/reviews/self"
data.json:
{
"body": "I find your lack of faith disturbing",
"rating": 1
}
The id of the resource to review
The text of the review
A numerical quality rating to give to the resource
PUT /api/resources/{resourceId}/reviews/self HTTP/1.1
Host: lor.instructure.com
x-session-id: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"body": "I find your lack of faith disturbing",
"rating": 1
}
{
"body": "text",
"createDate": "2025-06-30T21:44:13.128Z",
"resourceId": "text",
"rating": 1,
"updateDate": "2025-06-30T21:44:13.128Z",
"userAvatarUrl": "text",
"userFullName": "text",
"userId": "text",
"voteCount": 1
}
Get a review for the resource that was authored by the current user.
Example:
curl -X GET -H "X-Session-ID: 0123456789" "https://lor.instructure.com/api/resources/9cd972bef89b9fc7de6357a473f845db/reviews/self"
The id of the resource to get the review for
GET /api/resources/{resourceId}/reviews/self HTTP/1.1
Host: lor.instructure.com
x-session-id: YOUR_API_KEY
Accept: */*
{
"body": "text",
"createDate": "2025-06-30T21:44:13.128Z",
"resourceId": "text",
"rating": 1,
"updateDate": "2025-06-30T21:44:13.128Z",
"userAvatarUrl": "text",
"userFullName": "text",
"userId": "text",
"voteCount": 1
}
Destroy a user's review for this resource.
Example:
curl -X DELETE -H "X-Session-ID: 0123456789" "https://lor.instructure.com/api/resources/9cd972bef89b9fc7de6357a473f845db/reviews/self"
The id of the resource to delete the review for
DELETE /api/resources/{resourceId}/reviews/self HTTP/1.1
Host: lor.instructure.com
x-session-id: YOUR_API_KEY
Accept: */*
No content
List reviews for the specified resource.
curl -H "X-Session-ID: 0123456789" "https://lor.instructure.com/api/resources/0123456789/reviews?cursor=abcdefg"
The id of the resource to list reviews for
An identifier from a prior query to continue retrieving results for
GET /api/resources/{resourceId}/reviews HTTP/1.1
Host: lor.instructure.com
x-session-id: YOUR_API_KEY
Accept: */*
{
"items": [
{
"body": "text",
"createDate": "2025-06-30T21:44:13.128Z",
"resourceId": "text",
"rating": 1,
"updateDate": "2025-06-30T21:44:13.128Z",
"userAvatarUrl": "text",
"userFullName": "text",
"userId": "text",
"voteCount": 1
}
],
"meta": {
"cursor": "text"
}
}
Last updated
Was this helpful?