update_discount
Change an existing discount's name or amount by identifier; only passed fields are updated and its project or task cannot be moved.
Instructions
Change an existing discount's name or amount, by its identifier. Only the fields you pass are sent. Use create_discount for a new one and delete_discount to remove one; the project or task a discount applies to cannot be moved. Requires Gryzzly's budget offer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The discount's identifier. | |
| name | No | A new name. | |
| amount | No | A new amount. |
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. |