Get Rating

Resource:
/api/project/<<project_id>>/<<language_code>/rating
Method:
GET

This interface gets a rating to a translation.

Arguments

The URL for this method includes two parameters.

  • Project ID: The onDemand Project ID. You will receive this ID from Generate Quote
  • language_code is a locale code (e.g. en-gb where en is the two-letter ISO language code for English and gb is the two-letter ISO country code for Great Britain). This language code refers to the file you are adding, not its translations. If you don’t know the language code, you can use detect-language here and onDemand will attempt to detect it.

Return Codes

Status Code Comments
Created 200 The rating was successfully created.
Not Found 404

The URL does not relate to a rating

that the account owns.

Conflict 409

The request did not pass the validation

requirement to create the rating.

Response Body

Parameter Type Comments
Score
Integer

Value of the rating from 1-5.

1 - Unacceptable

2 - Poor

3 - Good Enough

4 - Very Good

5 - Excellent

CustomerFeedback
String

An optional feedback value for

the rating. This field becomes

required if the Score is

RatingDate
String

String representing the

date/time in the ISO

8601 format. that the

rating was created in UTC.

RatedBy
String

Account name who made

the rating.

Response Example

<TranslationRating>
    <Score>5</Score>
    <CustomerFeedback>Excellent!</CustomerFeedback>
    <RatingDate>2017-04-04T18:12:58.959249Z</RatingDate>
    <RatedBy>John Doe</RatedBy>
</TranslationRating>