Skip to main content
POST
/
screenings
/
{screeningPublicId}
/
materials
Add material to a screening
curl --request POST \
  --url https://api.maalbar.dk/screenings/{screeningPublicId}/materials \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "publicId": "itm_xxxxxxxxxxxx",
  "label": "<string>",
  "functionalUnitValue": 0,
  "designedForDisassembly": false,
  "productionWaste": 0,
  "fields": [
    {
      "publicId": "itm_xxxxxxxxxxxx",
      "locationPublicId": "lli_xxxxxxxxxxxx",
      "additional": {
        "proportion": 123,
        "recycleShare": 123,
        "materialUnits": {
          "DTex": 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
functionalUnitValue
number
default:0
required
designedForDisassembly
boolean
default:false
required
productionWaste
number
default:0
required
fields
object[]
required

Response

Unauthorized

error
string
Example:

"Authentication required"