Skip to main content
POST
/
screenings
/
{screeningPublicId}
/
packaging
/
masterbox
Add masterbox to a screening
curl --request POST \
  --url https://api.maalbar.dk/screenings/{screeningPublicId}/packaging/masterbox \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "publicId": "itm_xxxxxxxxxxxx",
  "label": "<string>",
  "designedForDisassembly": false,
  "amount": 1,
  "pallet": {
    "publicId": "pal_xxxxxxxxxxxx",
    "amountPerPallet": 1,
    "width": 123,
    "height": 123,
    "depth": 123,
    "functionalUnitValue": 123
  },
  "fields": [
    {
      "publicId": "itm_xxxxxxxxxxxx",
      "locationPublicId": "lli_xxxxxxxxxxxx",
      "additional": {
        "proportion": 123,
        "recycleShare": 123,
        "materialUnits": {
          "DTex": 123
        }
      }
    }
  ],
  "functionalUnitValue": 123,
  "productionWaste": 123,
  "width": 123,
  "height": 123,
  "depth": 123
}
'
{
  "error": "Authentication required"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
publicId
string
required
Required string length: 16
Example:

"itm_xxxxxxxxxxxx"

label
string
required
designedForDisassembly
boolean
default:false
required
amount
number
default:1
required
pallet
object
required
fields
object[]
required
functionalUnitValue
number | null
productionWaste
number | null
width
number | null
height
number | null
depth
number | null

Response

Unauthorized

error
string
Example:

"Authentication required"