dw_api_call
Make raw calls to DynamicWeb Admin API endpoints. Supports GET and POST with three body modes: model, raw, or update for creating, deleting, or updating records.
Instructions
Make a raw call to any DynamicWeb Admin API endpoint. For GET: provide params as query params. For POST: choose bodyMode. - 'model' (default) — wraps your model in {"Model": ...}. Used by most Save endpoints that create new records. - 'raw' — sends your model as the top-level body (no wrapper). Used by delete-style commands (e.g. ProductDelete, ItemTypeDelete). Supports params in the URL. - 'update' — sends {RunUpdateIndex?, QueryData, model} and appends ?Query.Type=queryType. Used to UPDATE existing records via screen commands (e.g. ProductSave). For update mode: pass queryType (e.g. 'ProductById'), queryData (identifies the record: {Id, LanguageId, QueryContext:{screenTypeName:'ProductEdit'}}), and optionally extraFields (e.g. {RunUpdateIndex:true}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | Endpoint name without leading slash, e.g. 'NavigationAll' | |
| method | No | GET | |
| params | No | Query parameters (used by GET and POST-raw) | |
| model | No | Body for POST | |
| bodyMode | No | How to wrap the body: 'model' | 'raw' | 'update' | model |
| queryType | No | Required for bodyMode='update'. E.g. 'ProductById', 'ProductsAll' | |
| queryData | No | Required for bodyMode='update'. Identifies the record, e.g. {Id:'PROD1', LanguageId:'LANG1', QueryContext:{screenTypeName:'ProductEdit'}} | |
| extraFields | No | Extra top-level body fields for bodyMode='update' (e.g. {RunUpdateIndex:true}) |