- Public Unit Conversions Bulk Upsert
The ratio
Upsert semantics (v1)
Public Unit Conversions List
Public Unit Conversions B...
Bulk-upsert unit conversions (async).
Accepts up to 100,000 rows per call. Each row upserts the (article_number, alternative_unit) conversion; rows whose article doesn't exist are skipped (see the job's skipped_count).
Response. 202 Accepted with JobAck on the first call; 200 OK with the same JobAck on an idempotent replay. Poll GET /jobs/{job_id} for terminal status.
Idempotency. Pass an Idempotency-Key header (≤ 255 chars); the same key with a different body returns 422.
- Mock serverhttps://docs.mercura.ai/_mock/openapi/articles/unit-conversions
- https://docs.mercura.ai/api/public/v1https://docs.mercura.ai/api/public/v1/articles/unit-conversions
- Productionhttps://prod-euapi.mercura.ai/api/public/v1/articles/unit-conversions
curl -i -X POST \
https://docs.mercura.ai/_mock/openapi/articles/unit-conversions \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: string' \
-H 'authorization: string' \
-d '{
"unit_conversions": [
{
"article_number": "string",
"alternative_unit": "string",
"numerator": 1,
"denominator": 1
}
]
}'Response
{ "job_id": "4242", "status_url": "/api/public/v1/jobs/4242" }