v2 Auto

Upsert Query Draft

Create or update a query draft.

Auth

Required header:

x-elfa-api-key: <api_key>
post/v2/auto/queries/drafts

Request

  • Base URL: https://api.elfa.ai
  • URL: https://api.elfa.ai/v2/auto/queries/drafts
  • Auth: API key in header x-elfa-api-key

Request body

idstring

Optional draft identifier for update

queryJsonObject required

Construct a type with a set of properties K of type T

titlestring

Short human-readable title for the draft.

Carried over when the draft is converted into an active query and then surfaced in outbound notifications (Telegram, webhook, notify). Set this at draft time so downstream recipients know what the alert is about.

descriptionstring

1–2 sentence description of the thesis or intent behind the draft.

Surfaced alongside the title in outbound notifications once the draft is activated. Write it as if the recipient has forgotten they set this up.

Example request

{
  "title": "BTC breakout alert",
  "description": "Notify when BTC is above 100k so I can review the breakout setup."
}

Response

Ok

ApiKeyUpsertQueryDraftResponse required

Changes

No recorded changes to this operation across all 1 revision of this API.