afv-library/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/ContentVersionRating.json

87 lines
3.3 KiB
JSON

{
"sections": [
"title",
"description",
"fields",
"special_access_rules",
"wsdl_segment",
"field_reference"
],
"title": "ContentVersionRating - Data API",
"description": "Represents a rating on a version of a file. This object is available in API version 42.0 and later.",
"fields_columns": [
"type",
"properties",
"description",
"relationship_name",
"relationship_type",
"refers_to"
],
"fields": {
"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"
}
},
"special_access_rules": "Only users with Modify All Data permission have access to this object.\n\nOnly users with Modify All Data permission have\n access to this object.",
"wsdl_segment": "```xml\n<complexType name=\"ContentVersionRating\">\n <complexContent>\n <extension base=\"ens:sObject\">\n <sequence>\n <element name=\"ContentVersion\" nillable=\"true\" minOccurs=\"0\" type=\"ens:ContentVersion\"/>\n <element name=\"ContentVersionId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n <element name=\"LastModifiedDate\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:dateTime\"/>\n <element name=\"Rating\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:int\"/>\n <element name=\"User\" nillable=\"true\" minOccurs=\"0\" type=\"ens:User\"/>\n <element name=\"UserComment\" nillable=\"true\" minOccurs=\"0\" type=\"xsd:string\"/>\n <element name=\"UserId\" nillable=\"true\" minOccurs=\"0\" type=\"tns:ID\"/>\n </sequence>\n </extension>\n </complexContent>\n</complexType>\n<simpleType name=\"ID\">\n <restriction base=\"xsd:string\">\n <length value=\"18\"/>\n <pattern value=\"[a-zA-Z0-9]{18}\"/>\n </restriction>\n</simpleType>\n```",
"field_reference": {
"ContentVersionId": {
"field_label": "Version ID",
"type": "reference",
"length": "18"
},
"Id": {
"field_label": "ContentVersionRating ID",
"type": "id",
"length": "18"
},
"LastModifiedDate": {
"field_label": "Last Modified Date",
"type": "datetime"
},
"Rating": {
"field_label": "Rating",
"type": "int",
"digits": "9"
},
"UserComment": {
"field_label": "User Comment",
"type": "textarea",
"length": "1000"
},
"UserId": {
"field_label": "User ID",
"type": "reference",
"length": "18"
}
},
"field_reference_columns": [
"field_label",
"type",
"length",
"digits"
]
}