payware_products_replace_airings
Replace all airing rules for a placement in one atomic call; if any rule is refused, nothing is saved. Submit an empty list to remove every rule.
Instructions
[Merchant] Replace all of a placement's airing rules with this list, all or nothing: when any rule is refused, nothing is saved and each refused rule is listed by its index. An empty list removes every rule. Suited to loading an agency's schedule in one call.
Endpoint: PUT /products/{productId}/placements/{placementId}/airings (PRM plan)
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": {
"productId": "<productId>",
"placementId": "<placementId>",
"rules": "<rules>"
},
"name": "payware_products_replace_airings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | The complete new set of airing rules, up to 100 | |
| productId | Yes | The product's ID: pr + 8 letters or digits, e.g. pr7e4rCToG | |
| useSandbox | No | Use the sandbox (the default) rather than production | |
| placementId | Yes | The placement's ID: pl + 8 letters or digits, e.g. pl7e4rCToG |