wafeq_payslips_pay_items_update
Update an existing pay item on a payslip by specifying the payslip ID, pay item ID, and the new account, amount, and description.
Instructions
๐ก WRITE ยท updates data ยท Pay Items ยท PUT /payslips/{payslip_id}/pay-items/{id}/
Update pay item
Endpoint for updating an existing pay item.
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": {
"payslip_id": "<payslip_id>",
"id": "<id>",
"body": "<body>"
},
"name": "wafeq_payslips_pay_items_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| body | Yes | A ModelSerializer that takes additional arguments for "fields", "omit" and "expand" in order to control which fields are displayed, and whether to replace simple values with complex, nested serializations | |
| payslip_id | Yes | ||
| idempotency_key | No | Optional idempotency key (sent as the X-Wafeq-Idempotency-Key header). A UUID v4 is generated automatically when omitted, so an automatic network retry can never duplicate this operation. Pass your own stable value to make a deliberate re-invocation safe as well. |