mainwp_costs_edit
Update an existing cost entry in MainWP with new details such as name, type, price, currency, renewal schedule, and assigned sites.
Instructions
Edit an existing cost entry in MainWP (Pro feature)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | Cost ID (number) | |
| name | No | Updated cost name | |
| note | No | Additional notes | |
| type | No | Cost type | |
| price | No | Cost amount | |
| sites | No | Site IDs this cost applies to | |
| dry_run | No | Simulate the operation without making changes (defaults to MAINWP_ENABLE_DRY_RUN_BY_DEFAULT) | |
| currency | No | Currency code | |
| last_renewal | No | Last renewal date | |
| next_renewal | No | Next renewal date | |
| product_type | No | Product category | |
| renewal_frequency | No | Billing frequency |