read
general

Revise an artifact you or the merchant already has, by id. The previous version is kept and stays readable, so a change

Changed on

Revise an artifact you or the merchant already has, by id. The previous version is kept and stays readable, so a change is never a loss. Use this whenever the merchant asks for a change to something you made — add a column, redo it for a different window, correct a figure — rather than creating a second near-identical document. change_note is required and is what the merchant reads in the version list: say what changed and why, not "updated".

post/api/v1/tools/update_artifact

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesread

Request body

object required
artifact_id, string required

The id returned when it was created.

title, string
summary, string
content, object[]

An ordered list of blocks. Each is one of: {"type":"heading","text":"…","level":2|3}; {"type":"text","text":"markdown"}; {"type":"kpi","items":[{"label":"Revenue","value":12400,"unit":"currency","currency":"EUR","delta":{"value":8.2,"period":"vs last week","higher_is_better":true},"trend":[1,2,3]}]} (1–4 items; a single item renders as the hero figure); {"type":"table","columns":[{"key":"sku","label":"SKU"},{"key":"rev","label":"Revenue","unit":"currency","currency":"EUR"}],"rows":[{"sku":"A1","rev":120}],"caption":"…","source":{"tool":"query_performance","window":"last 30 days","rows":42}}; {"type":"chart","spec":{…the render_chart spec…}}; {"type":"callout","tone":"info|warn|crit|ok","title":"…","text":"…"}. Pick the form by the job: ONE current number is a kpi block, never a one-bar chart; a few headline numbers is one kpi block with several items; more than about seven rows of numbers that all matter is a table; a shape over time or across things is a chart. Always set unit (and currency for money), and fill in source on tables and charts so every figure can be traced back to the tool that produced it.

change_note, string required

What changed and why. Shown in the version history.

Response

Tool result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision