API reference

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

Request body fields
FieldTypeWhat it is
job_idrequiredstring
ratingrequiredintegerOne of 1, -1, 0.

Example

{
  "job_id": "string",
  "rating": 1
}

Answer 200

The thumb as kept.

Fields of the 200 answer
FieldTypeWhat it is
objectstringOne of "studio.take_rating".
job_idstring
modelstring
kindstring
ratingintegerOne of 1, -1, 0.
updated_atinteger

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.

Antimatter