Skip to main content
Set, change or clear target values of one quota, for one or more users. Only the cells listed are written: a user or a period left out keeps its value, so this is an adjustment, never a replacement of the whole quota. Read the current values with list_quota_values first when the change is relative to them. Pass value: null to clear a cell. On a value synchronized from an integration, null cancels the manual overwrite and brings the synchronized value back instead. The call is all or nothing: an unknown user, a period not in the quota’s frequency format or a period listed twice refuses the whole call before anything is written. A call writes at most 100 values, all users together. Statements are not recalculated by this call, just as when a target is edited in the web app — they pick the new values up at the next automatic recalculation, or when someone refreshes them. The quota’s environment (live or a sandbox) is the one the quota lives in. Requires write permission on quotas. Available only where the Qobra write tools beta is enabled. Every write to the live environment is recorded in the audit trail as the Qobra MCP agent; writes to a sandbox are not audited.

Parameters

Body

string
required
Id of the quota whose targets to write — the id list_quotas returns, or the one create_quota just returned.
object[]
required
The targets to write, grouped by user. At most 100 values per call, all users together.

Example

Response

Body

object
The quota the values were written on — the same row list_quotas returns. See list_quotas for the full field breakdown.
object[]
Every cell this call changed. A cell sent at the value it already held is not listed, so an empty list means nothing changed.