set_user_cost_rate
Set the internal hourly COST rate for one member of your organization (used for profit/margin reporting). The organization is fixed by your context - never pass an organization id. You cannot set your own cost rate. The rate value is never echoed back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | Yes | Id (or Firebase UID) of the member whose cost rate is being set (required). Must be a member of your organization; cannot be yourself. | |
| currency | No | Optional ISO 4217 currency code (e.g. USD, EUR). Defaults to USD. | |
| hourly_rate | Yes | The hourly cost rate, a positive number (required). | |
| effective_to | No | Optional date this rate stops applying (YYYY-MM-DD). Omit for an open-ended rate. | |
| effective_from | No | Optional date this rate takes effect (YYYY-MM-DD). Defaults to today. | |
| idempotency_key | No | Optional caller-supplied key; retrying with the same key returns the original result instead of acting twice. |