Body
      
    Required
 
    
    Specify one or more fields and their new values to change it
- 
    
  If supplied, must link to a valid Location 
- 
    
  If supplied, must link to a valid campaign that the logged in user can see 
- 
    
  Minimum value is 0.
- 
    
  When to request a re-order Minimum value is 0.
- 
    
  CORE user id for the person who administers this stock item 
- 
    
  Minimum value is 0.
- 
    
  Minimum value is 0.
- 
    
  If supplied, must link to a valid event, and event_date 
- 
    
  If supplied, must link to a valid event along with event_id 
- 
    
  If supplied, the last date a discount price is available 
- 
    
  Minimum value is 0.
        PATCH
    /stock/{id}
  
  curl \
 --request PATCH 'https://YOURSITE.infoodle.com/apiv2/stock/99' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"stockcode":"EVT#1","description":"Event Tickets","location_id":45,"campaign_id":421,"current_stock":100,"reorder_stock":5,"administrator_user_id":542123,"item_price":120.5,"cost_price":100.5,"event_id":54,"event_date":"2026-02-29","early_bird_end_date_local":"2026-01-01","early_bird_price":70.5}'
        Request examples
  
  {
  "stockcode": "EVT#1",
  "description": "Event Tickets",
  "location_id": 45,
  "campaign_id": 421,
  "current_stock": 100,
  "reorder_stock": 5,
  "administrator_user_id": 542123,
  "item_price": 120.5,
  "cost_price": 100.5,
  "event_id": 54,
  "event_date": "2026-02-29",
  "early_bird_end_date_local": "2026-01-01",
  "early_bird_price": 70.5
}
        Response examples (200)
  
  {
  "id": 4325342
}
        Response examples (401)
  
  {
  "error": "Unauthorised"
}
        Response examples (403)
  
  {
  "error": "Invalid Permission"
}
        Response examples (404)
  
  {
  "error": "Not Found"
}