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

Authorizations

X-Api-Key
string
header
required

Body

application/json
label
string
required
functionalUnitValue
number
default:0
required
designedForDisassembly
boolean
default:false
required
amount
number
default:1
required
amountType
enum<string>
required
fields
object[]
required
functionalUnitKilogramValue
number | null
productionWaste
number | null
width
number | null
height
number | null
depth
number | null

Response

Unauthorized

error
string
Example:

"Authentication required"