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
}
Session authentication. The session ID can be provided in any of the following ways: [Cookie: 'session'] [Header: 'x-session-id'] [Query parameter: 'session-id'] [Query parameter: first value of 'state'] [Body property: 'sessionId']
The id of the resource to review
Review updated successfully
The text of the review
The date the review was created (ISO date string)
The id of resource the review was created for
The number rating given for the resource in this review (1-5)
The date the review was last updated (ISO date string)
The url for the avatar of the user who created the review
The full name of the user who created the review
The id of the user who created the review
The number of times the review has been upvoted by other Commons users
Review created successfully
Bad Request
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": "2026-01-01T00:00:00.000Z",
"resourceId": "text",
"rating": 1,
"updateDate": "2026-01-01T00:00:00.000Z",
"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"
Session authentication. The session ID can be provided in any of the following ways: [Cookie: 'session'] [Header: 'x-session-id'] [Query parameter: 'session-id'] [Query parameter: first value of 'state'] [Body property: 'sessionId']
The id of the resource to get the review for
Review found
The text of the review
The date the review was created (ISO date string)
The id of resource the review was created for
The number rating given for the resource in this review (1-5)
The date the review was last updated (ISO date string)
The url for the avatar of the user who created the review
The full name of the user who created the review
The id of the user who created the review
The number of times the review has been upvoted by other Commons users
Review not found
GET /api/resources/{resourceId}/reviews/self HTTP/1.1
Host: lor.instructure.com
x-session-id: YOUR_API_KEY
Accept: */*
{
"body": "text",
"createDate": "2026-01-01T00:00:00.000Z",
"resourceId": "text",
"rating": 1,
"updateDate": "2026-01-01T00:00:00.000Z",
"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"
Session authentication. The session ID can be provided in any of the following ways: [Cookie: 'session'] [Header: 'x-session-id'] [Query parameter: 'session-id'] [Query parameter: first value of 'state'] [Body property: 'sessionId']
The id of the resource to delete the review for
Review deleted successfully
No content
Bad Request
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"
Session authentication. The session ID can be provided in any of the following ways: [Cookie: 'session'] [Header: 'x-session-id'] [Query parameter: 'session-id'] [Query parameter: first value of 'state'] [Body property: 'sessionId']
The id of the resource to list reviews for
An identifier from a prior query to continue retrieving results for
List of reviews for a resource
Bad Request
GET /api/resources/{resourceId}/reviews HTTP/1.1
Host: lor.instructure.com
x-session-id: YOUR_API_KEY
Accept: */*
{
"items": [
{
"body": "text",
"createDate": "2026-01-01T00:00:00.000Z",
"resourceId": "text",
"rating": 1,
"updateDate": "2026-01-01T00:00:00.000Z",
"userAvatarUrl": "text",
"userFullName": "text",
"userId": "text",
"voteCount": 1
}
],
"meta": {
"cursor": "text"
}
}Last updated
Was this helpful?