POST /v1/metering/operations/{operation_id}/attempts/{attempt_id}/usage:report
MeteringService_ReportUsage
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
operation_idpath · string · requiredattempt_idpath · string · required
Request body
attempt_idstringcumulative_quantitystringdimensions_jsonstringmeter_codestringobserved_atstringoperation_idstringsequence_nostringsource_event_idstringstagestring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/metering/operations/{operation_id}/attempts/{attempt_id}/usage:report' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"cumulative_quantity": "<value>",
"dimensions_json": "<value>",
"meter_code": "<value>",
"observed_at": "<value>",
"sequence_no": "<value>",
"source_event_id": "<value>",
"stage": "<value>"
}'Response contract
200 · OK
attempt_idstringcreated_atstringcumulative_quantitystringdimensions_jsonstringduplicatebooleanexecution_delegation_idstringidstringmeter_codestringobserved_atstringoperation_idstringreporter_api_key_idstringreporter_service_account_idstringreporter_tenant_idstringsequence_nostringsource_event_idstringstagestring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.