Skip to main content
POST
/
commands
/
{command_id}
/
editor
/
draft
/
turn
Post Command Editor Draft Turn
curl --request POST \
  --url https://analyst.heyhumm.ai/commands/{command_id}/editor/draft/turn \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "draft_id": "<string>"
}
'
{
  "draft_id": "<string>",
  "organization_id": "<string>",
  "command_id": "<string>",
  "base_command": {
    "name": "<string>",
    "content": "<string>",
    "current_version": 123,
    "description": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "schema_version": "v1",
  "status": "draft",
  "messages": [
    {}
  ],
  "proposed_command": {
    "name": "<string>",
    "content": "<string>",
    "current_version": 123,
    "description": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "change_summary": "<string>",
  "diff_message_index": 123,
  "diff_history": [
    {
      "message_index": 123,
      "summary": "<string>",
      "fields": [
        {
          "field": "name",
          "before": "<string>",
          "after": "<string>"
        }
      ]
    }
  ],
  "warnings": [
    "<string>"
  ],
  "approvable": false,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "applied_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://heyhumm.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

command_id
string<uuid>
required

Command ID

Query Parameters

organization_id
string
required

Body

application/json

Request payload for one command editor turn.

message
string
required
draft_id
string | null

Response

Successful Response

Persisted state for one command editor chat thread.

draft_id
string
required
organization_id
string
required
command_id
string
required
base_command
CommandEditorSnapshot · object
required

Command fields captured for diffing and stale-version checks.

schema_version
string
default:v1
status
enum<string>
default:draft
Available options:
draft,
applied
messages
Messages · object[]
proposed_command
CommandEditorSnapshot · object

Command fields captured for diffing and stale-version checks.

change_summary
string | null
diff_message_index
integer | null
diff_history
CommandEditorDiffSnapshot · object[]
warnings
string[]
approvable
boolean
default:false
created_at
string<date-time>
updated_at
string<date-time>
applied_at
string<date-time> | null