Skip to main content
PATCH
/
v2
/
package
/
change
Modifies an existing Package Weight
curl --request PATCH \
  --url https://api.jtl-cloud.com/erp/v2/package/change \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-tenant-id: <x-tenant-id>' \
  --data '
{
  "packageId": "<string>",
  "weight": 123
}
'

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

x-runas
string

The User-Id (int or uuid) on whose behalf the request is executed. Requires scope 'Application.RunAs'.

x-companyid
string

The Company-Id (int or uuid) of the company on whose behalf the request is executed.

Body

application/json

Request parameters

Modifies an existing Package Weight - Request

packageId
string

ID of the Package to be modified

weight
number<decimal>

The new Weight of the Package

Response

200 - application/json

Package Weight was successfully modified.