Skip to content
dimmiDocs

AI agent

Create a procedure

POST/api/v1/procedures

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the ai:write ability

Body

application/json
namestringrequired

A name unique in the workspace, 1 to 80 characters.

Maximum length: 80

Response 201

Created
dataobjectrequired
Show child attributes
created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

definitionanyrequired

The procedure's working copy as a JSON object: the draft being edited, which may differ from what dimmi follows.

has_unpublished_changesbooleanrequired

True when the procedure is live and its working copy differs from the published one dimmi follows.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

lock_versionintegerrequired

Version counter of the working copy; send the value you read when saving so a newer save is not overwritten.

Format: int32

namestringrequired

Name of the procedure.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

published_atstring | nullrequired

When it was last published. Null when it never was.

Format: date-time

statusstringrequired

draft when it was never published, live when dimmi follows its published version.

updated_atstringrequired

When it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

usesintegerrequired

How often dimmi followed the procedure in the last 30 days.

Format: int32

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.