API reference

API reference · Account

Rename a character or change its pictures

PATCH/api/studio/characters/{id}Signed in session

A new name, a new list of pictures, or both. A picture left out of the list is deleted with its stored file. The signed in account; same origin for a write.

Parameters

Path and query parameters
FieldTypeWhat it is
id (path)requiredstringThe character's id, sch_ followed by hex.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
namestringAt most 80 characters.
picturesarray of string

Example

{
  "name": "string",
  "pictures": [
    "string"
  ]
}

Answer 200

The character as it is now.

Fields of the 200 answer
FieldTypeWhat it is
idrequiredstring
objectrequiredstringOne of "studio.character".
namerequiredstring
picturesrequiredarray of objectThe stored pictures in the order a shot sends them as references, the first the one a model that takes a single picture gets.
pictures[].asset_idstring
pictures[].content_urlstringThe stored file door the asking door serves: /api/studio/assets/{id}/content for the session, /v1/studio/assets/{id}/content for a key.
sheetarray of objectThe character's sheet: each side that holds or is making a picture, in the order front, three_quarter, profile, back. Absent while no side was ever asked for.
sheet[].anglestringOne of "front", "three_quarter", "profile", "back".
sheet[].statusstringkept: the side holds `picture`, one of the character's pictures; making: a still is being made for it (`picture` is what it held before, if anything); failed: the newest try did not land, said in `error`. One of "kept", "making", "failed".
sheet[].pictureobject or null
sheet[].picture.asset_idstring
sheet[].picture.content_urlstring
sheet[].modelstringThe still model of the newest try.
sheet[].job_idstring or nullThe newest try's still job.
sheet[].errorstring or null
sheet[].updated_atinteger
created_atrequiredinteger
updated_atrequiredinteger

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 404OpenAI shaped error.
  • 429OpenAI 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