Import quota values
The v2 API writes for the first time:POST /v2/quotas/{quota_id}/values
writes the values of a quota, up to 10,000 rows per call, in an import that
runs in the background.- Each row names the user by email and the period by a date,
YYYY-MM-DD."deleted": trueclears a cell. - A value changed by hand in Qobra is kept, and sending a call again is safe. Once the import is finished, the statements not yet validated are recomputed.
dry_run=truechecks a call without importing anything, anddebouncemerges successive calls into one import.GET /v2/imports/{import_id}follows the import: its status, and for each quota the counts of the rows and the rows set aside.- A refused call lists all its errors at once, each with its
pathand the valuereceived. This format applies to the write endpoints only: the read endpoints keep theirs.
standard.date in the quota values
GET /v2/quotas/{quota_id}/values
returns a new key on every row, standard.date, the last day of the period.
It is the date to send back to write the same cell. The fields of a quota list
it too, so the schema_hash of every quota changed.