AI agent
Restore a procedure version
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:write ability
Path parameters
procedurestringrequiredId of the AI agent procedure, starting with prc_, such as prc_01jx2m8k4t. Find it with GET /procedures.
versionintegerrequiredId of the saved version, starting with prcv or srsv_, such as prcv_01jx2m8k4t. Find it with the matching versions list.
Format: int32 · Minimum: 1
Body
application/jsonlock_versionintegerThe lock_version the record had when you read it, such as 3. It stops you overwriting a newer save.
Format: int32
publishbooleantrue to publish it at once, false to leave it a draft.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
definitionanyrequiredThe procedure's working copy as a JSON object: the draft being edited, which may differ from what dimmi follows.
has_unpublished_changesbooleanrequiredTrue when the procedure is live and its working copy differs from the published one dimmi follows.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
lock_versionintegerrequiredVersion counter of the working copy; send the value you read when saving so a newer save is not overwritten.
Format: int32
namestringrequiredName of the procedure.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
published_atstring | nullrequiredWhen it was last published. Null when it never was.
Format: date-time
statusstringrequireddraft when it was never published, live when dimmi follows its published version.
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
usesintegerrequiredHow often dimmi followed the procedure in the last 30 days.
Format: int32
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.