API reference · Account
A thumb on one of the account's finished takes
PUT/api/studio/ratingsSigned in session
rating 1 up, -1 down, 0 takes the thumb back. Nothing is billed. Same origin only.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| job_idrequired | string | |
| ratingrequired | integer | One of 1, -1, 0. |
Example
{
"job_id": "string",
"rating": 1
}Answer 200
The thumb as kept.
| Field | Type | What it is |
|---|---|---|
| object | string | One of "studio.take_rating". |
| job_id | string | |
| model | string | |
| kind | string | |
| rating | integer | One of 1, -1, 0. |
| updated_at | integer |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 404OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.