Skip to content
Public API
Esc
↑↓navigate↵open⌘Jpreview

Update a reel

The id goes in the body and must be numeric. At least one other field is required, otherwise the call fails with 400.

PUT/reel
Authorization
AuthorizationAPI key · headerrequired

The Incoming Secret value (<secretId>.<random>), with or without a Bearer prefix.

Request body
application/json
idintegerrequired

Id of the reel (numeric, not a string).

statestring

Reel state.

Allowed:unassignedon_printerstorageexpired
batchIdstring

Batch label; unique among the app's non-expired reels.

machineIdinteger

Id of the machine the reel is on.

materialIdinteger

Id of the material.

colorIdinteger

Id of the colour.

machineSlotIdxinteger

Storage slot index on the machine.

amountOriginalnumber

Amount a full reel holds.

amountActualnumber

Amount currently left.

Responses
200

OK. Returns only the id — fetch the full ReelItem with the corresponding GET.

idinteger | stringrequired

Id of the updated ReelItem.

Show properties
One of:
integer
integer
string
string
401

Authentication failed. All causes return this identical response.

codeinteger
messagestring
typestring
default

Downstream errors pass through verbatim; x-error-source names the failing service.

codeinteger
messagestring
typestring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X PUT 'https://next.amfg.ai/engine-service/public-api/v1/reel' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": 0,
  "state": "unassigned",
  "batchId": "string",
  "machineId": 0,
  "materialId": 0,
  "colorId": 0,
  "machineSlotIdx": 0,
  "amountOriginal": 0,
  "amountActual": 0
}'
Response
{
  "id": 0
}