---
schema_version: "1"
id: d909407409d185fa223cdf7ac46b5996f6160e4968f6aef2fc1656510ee3e9a8
title: ContentVersionRating
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_contentversionrating.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentversionrating.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bd0d1c0c454f1afc50a40a0bc6ab6909edbbc4e0ae7af59532eed2aeb94ab479
description: Represents a rating on a version of a file. This object is available in API version 42.0 and later.
---
# ContentVersionRating

Represents a rating on a version of a file. This object is available in API version 42.0 and later.

## Supported Calls

delete(), describeSObjects(), query(), retrieve()

## Special Access Rules

Only users with Modify All Data permission have access to this object.

## Fields

| Field | Details |
| --- | --- |
| ContentVersionId | 
Type

reference

Properties

Filter, Group, Sort

Description

ID of the version of the file.

This is a relationship field.

Relationship Name

ContentVersion

Relationship Type

Lookup

Refers To

ContentVersion



 |
| Rating | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

Rating of the file.



 |
| UserComment | 

Type

textarea

Properties

Filter, Nillable, Sort

Description

Comment made by the user who rated the file.



 |
| UserId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the user who rated the file.

This is a relationship field.

Relationship Name

User

Relationship Type

Lookup

Refers To

User



 |