Skip to main content
POST
/
v1
/
availability
/
recalculate
Recalculate availability scores
curl --request POST \
  --url http://localhost:3000/v1/availability/recalculate \
  --header 'Content-Type: application/json' \
  --data '
{
  "product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "only_rfc_items": false,
  "limit": 500
}
'
{
  "success": true,
  "updated": 123,
  "errors": 123,
  "result": {
    "score": 123,
    "tier": "<string>",
    "confidence": {
      "level": "<string>",
      "lower": 123,
      "upper": 123
    },
    "total_events": 123,
    "events_by_type": {},
    "events_by_location": {}
  }
}

Body

application/json
product_id
string<uuid>
only_rfc_items
boolean
default:false
limit
integer
Required range: 1 <= x <= 1000

Response

200 - application/json

Recalculation result

success
boolean
required
updated
number
required
errors
number
required
result
object