Renames, changes the priority of or moves a shipment
PATCH
/packages/{id}Requires: Cookie fret_session / Bearer
Path parameters
idintegerrequired
Request body
application/jsonobjectrequired
namestringpriorityPrioritypositionintegerNew place at the dock
Responses
200OKPackage
idintegernamestringEmpty for an unnamed shipment of several parcels: the client words it ("Shipment of 3 parcels")
dirstringpriorityPrioritypositionintegerheldbooleanCollected, awaiting confirmation
sourcestringcreatedAtstring (date-time)storedAtstring (date-time) | nullStored in the warehouse; null while on the dock
filesFile[]Fields · 19
idintegernumberstringpackageIdintegerurlstringnamestringsubdirstringPlace in a consignment's folder tree, inside the shipment's warehouse folder; empty at its root
sizeinteger-1 when unknown
receivedintegerspeedintegerbytes/s
hosterstringdebridstringstatusStatusParcel status, see Statuses
errorstringattemptsintegerwaitUntilstring (date-time) | nullunpackedbooleanunpackErrorstringcreatedAtstring (date-time)updatedAtstring (date-time)
404Errorobject
errorobjectFields · 2
codestringmessagestring
Request
curl -X PATCH "http://localhost:8080/api/v1/packages/0" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "priority": "express", "position": 0}'const response = await fetch('http://localhost:8080/api/v1/packages/0', { method: 'PATCH', headers: { Authorization: 'Bearer <TOKEN>', 'Content-Type': 'application/json', }, body: JSON.stringify({ "name": "string", "priority": "express", "position": 0 }),});const data = await response.json();import requests
response = requests.patch( "http://localhost:8080/api/v1/packages/0", headers={ "Authorization": "Bearer <TOKEN>", }, json={ "name": "string", "priority": "express", "position": 0, },)response.raise_for_status()print(response.json())Response
{ "id": 0, "name": "string", "dir": "string", "priority": "express", "position": 0, "held": true, "source": "", "createdAt": "2026-01-01T12:00:00Z", "storedAt": "2026-01-01T12:00:00Z", "files": [ { "id": 0, "number": "FR-0042", "packageId": 0, "url": "string", "name": "string", "subdir": "string", "size": 0, "received": 0, "speed": 0, "hoster": "string", "debrid": "string", "status": "queued", "error": "string", "attempts": 0, "waitUntil": "2026-01-01T12:00:00Z", "unpacked": true, "unpackError": "string", "createdAt": "2026-01-01T12:00:00Z", "updatedAt": "2026-01-01T12:00:00Z" } ]}{ "error": { "code": "not_found", "message": "string" }}