Sign in

Update item

documented

Update an inventory item.

PUT /Item/{id}Itemsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.saasu.com/Item/{{$id}}?FileId={{$file_id}}" \
  -X PUT \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"Notes": "{{$notes}}", "BuildItems": [ {"Id": {{$buildItem1_id}}, "Code": "{{$buildItemCode}}", "Description": "{{$buildItemDescription}}", "Quantity": {{$buildItemQuantity}} } ], "Id": {{$id}}, "Code": "{{$code}}", "Description": "{{$description}}", "Type": "{{$type}}", "IsActive": {{$isActive}}, "IsInventoried": {{$isInventoried}}, "AssetAccountId": {{$assetAccountId}}, "IsSold": {{$isSold}}, "SaleIncomeAccountId": {{$saleIncomeAccountId}}, "SaleTaxCodeId": {{$saleTaxCodeId}}, "SaleCoSAccountId": {{$saleCoSAccountId}}, "IsBought": {{$isBought}}, "PurchaseExpenseAccountId": {{$purchaseExpenseAccountId}}, "PurchaseTaxCodeId": {{$purchaseTaxCodeId}}, "MinimumStockLevel": {{$minimumStockLevel}}, "PrimarySupplierContactId": {{$primarySupplierContactId}}, "PrimarySupplierItemCode": "{{$primarySupplierItemCode}}", "DefaultReOrderQuantity": {{$defaultReOrderQuantity}}, "LastUpdatedId": "{{$lastUpdatedId}}", "IsVisible": {{$isVisible}}, "IsVirtual": {{$isVirtual}}, "VType": "{{$vType}}", "SellingPrice": {{$sellingPrice}}, "IsSellingPriceIncTax": {{$isSellingPriceIncTax}}, "BuyingPrice": {{$buyingPrice}}, "IsBuyingPriceIncTax": {{$isBuyingPriceIncTax}}, "ValidFrom": "{{$validFrom}}", "ValidTo": "{{$validTo}}", "OnOrder": {{$onOrder}}, "Committed": {{$committed}} }'