Make a change through the SKU.io API
api_writeCreates or changes data through a SKU.io REST API endpoint (POST, PUT or PATCH; reference: https://developer.sku.io). Only reviewed endpoints that create records or edit fields can be called; search_api marks them callable. Deletes, voids, cancels and sends are unavailable. Returns {status, data} or a detailed error such as validation_failed. Needs "Allow changes" for the endpoint's area. dry_run runs the change and rolls it back, returning the would-be result and what it would have triggered (emails, webhooks, jobs) without changing anything; idempotency_key makes a retry safe.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint_id": "<endpoint_id>"
},
"name": "api_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The JSON request body. | |
| dry_run | No | When true, run the change and roll it back: returns the would-be result and what it would have triggered (emails, webhooks, jobs), and changes nothing. | |
| endpoint_id | Yes | An endpoint_id from search_api, e.g. "post.inventory-adjustments". | |
| path_params | No | Values for the endpoint_id's {placeholders}, e.g. {"id": 12}. | |
| idempotency_key | No | Optional, at most 128 characters. Repeating a call with the same key returns the first result instead of writing twice. |