Build an approval card to import product costs from a staged sheet. Call inspect_cost_import first: if it returned ready
Changed onBuild an approval card to import product costs from a staged sheet. Call inspect_cost_import first: if it returned ready_to_propose=true, call this with ONLY import_id — the mapping is already settled and passing columns can only make it worse. Otherwise pass just the answers to the questions inspect_cost_import listed (identifier_column, cost_column and/or currency). Returns a preview card the user approves; nothing is written until they do.
Request
- Base URLhttps://app.magistry.io
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://app.magistry.io/api/oauth/authorizeToken URLhttps://app.magistry.io/api/oauth/tokenScopescosts:write
Headers
Optional; honoured when sent. A unique string you choose for this request; send the SAME key when retrying and the first answer is returned instead of writing twice (idempotent-replayed: true). The same key with other arguments is 409 idempotency_conflict. If the header and idempotency_key are both sent they must be equal.
Request body
Only when inspect_cost_import asked which column identifies the product.
Only when inspect_cost_import asked which column holds the unit cost.
Only when inspect_cost_import asked. Pass the chosen option's value VERBATIM — either an ISO 4217 code, or the "convert:<ISO>" form, which converts the sheet's stated currency into <ISO> at the platform rate.
Import rows the sheet itself flagged (a note saying CHECK / wrong / verify). Default false — they are left out and counted. Only pass true if the user, having been told what the note says, asks for them.
Manual override for the product title column.
Manual override for the SKU column.
Optional. A unique string you choose for this request. Send the SAME key when retrying after a timeout and Magistry returns the original outcome instead of performing the write twice. Reusing a key with different arguments is refused rather than replayed.
Response
Tool result
Changes
- warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status
11 more changes in this revision
- warning