Skip to content
中文

Record how a setting entry changes at a unit

Code Mode: praxis.studio.works.progressions.create

HTTP: POST /studio/v1/works/{work}/progressions

Record that an entry changes as of one unit: a character is injured in chapter 6, a shop moves in chapter 9, a secret becomes known. The library keeps what an entry is from the start; a progression keeps what becomes true later. A unit’s context pack shows an entry’s changes up to and including that unit (截至本单元的设定变化) and withholds the later ones, so chapter 3 is not written with chapter 6’s injury. Name the entry by its name, an alias or its ent_ identifier, and the unit by its number.

Signature

praxis.studio.works.progressions.create(args:{path:{/** e.g. "wu-gang" */ work:string};body:{/** Entry that changes, by name, alias or ent_ identifier; it must be in a library this work mounts. e.g. "陈伯" */ entry:string;/** Unit from which the change is true, by number such as 3 or by unt_ identifier. e.g. "3" */ unit:string;/** What changes, in a sentence a writer can respect. e.g. "第一次睡了整觉,开始信阿五" */ change:string}}):Promise<{/** Progression identifier, used to delete it. e.g. "prg_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** Resource kind marker, always studio.progression. e.g. "studio.progression" */ object:string;/** Work the change is recorded in. e.g. "wk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ work:string;/** Entry that changes, by identifier. e.g. "ent_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ entry:string;/** Unit from which the change is true, by identifier. e.g. "unt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ unit:string;/** What changes, in a sentence. e.g. "第一次睡了整觉,开始信阿五" */ change:string;/** When it was recorded, in RFC 3339 UTC. e.g. "2026-11-09T09:20:11Z" */ create_time:string;/** When it last changed, in RFC 3339 UTC. e.g. "2026-11-09T09:20:11Z" */ update_time:string}>;

Parameters

NameInTypeRequiredDescription
workpathstringyesThe work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value.

Request body

RequiredContent typesDescription
yesapplication/jsonThe entry, the unit where the change happens, and the change in a sentence.

Responses

StatusContent typesDescription
201application/jsonThe progression as stored, with the entry and unit resolved to identifiers.
400application/jsonINVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
401application/jsonThe API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
404application/jsonWORK_NOT_FOUND, UNIT_NOT_FOUND, ENTRY_NOT_FOUND or PROGRESSION_NOT_FOUND means the work, the unit number, the entry (it must be in a library this work mounts) or the progression is not reachable; read the outline and the library for the names that exist.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.