Update via the ApparelHub API
api_updateUpdate ApparelHub Agent API records with authenticated PATCH or PUT requests, using relative paths and scoped account permissions. Use when no dedicated tool covers the needed change.
Instructions
Update something in the ApparelHub Agent API (https://apparelhub.ai/developer/api-docs) with an authenticated PATCH (partial update, the default) or PUT (full replace), as the connected account. Changes data. PREFER a dedicated tool when one exists (they return clean, guarded results); use this only for capabilities no tool covers. Call get_api_reference first to find the right path. path is relative (e.g. "orders", "store//settings"); no full URLs. Scoped to the account's own permissions.
[#ad1154]
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": {
"method": "<method>",
"path": "<path>"
},
"name": "api_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body. | |
| path | Yes | Relative path under /agents/v1, e.g. "orders" or "product/<uuid>/archive". No host, no "..". | |
| query | No | Query-string parameters. | |
| method | Yes | PATCH (default) or PUT, as the endpoint requires. | PATCH |
| workspace | No | Workspace uuid to scope to (agency accounts). |