create_discount
Adds a discount to a single project or task, with a name and amount. Verify existing discounts first to prevent duplicates.
Instructions
Grant a discount on exactly one project or one task, named or identified, with a name and an amount taken off its budget. Use it to add a discount; use update_discount to change one. Each call creates a new record, so check list_discounts first to avoid granting it twice. Passing both a project and a task, or neither, is refused before any request. Requires Gryzzly's budget offer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The discount's name. | |
| task | No | The task it applies to, by name or id. One of project or task. | |
| amount | No | How much is taken off. | |
| project | No | The project it applies to, by name, code or id. One of project or task. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The discount's identifier. | |
| name | No | The discount's name. | |
| amount | No | How much is taken off. | |
| task_id | No | The task it applies to. | |
| created_at | No | When the discount was created. | |
| project_id | No | The project it applies to. | |
| updated_at | No | When the discount was last updated. |