AI agent
Create a procedure
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the ai:write ability
Body
application/jsonnamestringrequiredA name unique in the workspace, 1 to 80 characters.
Maximum length: 80
Response 201
CreateddataobjectrequiredShow 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.