Skip to main content
PUT
/
screenings
/
{screeningPublicId}
Update screening
curl --request PUT \
  --url https://api.maalbar.dk/screenings/{screeningPublicId} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "lightSocketType": "<string>",
  "amountOfLightSockets": 0,
  "totalWeight": 1,
  "energyOperationalConsumption": 1,
  "energyStandbyConsumption": 1,
  "lightSourceOperationalConsumption": 1,
  "lightSourceStandbyConsumption": 1,
  "notes": "<string>",
  "transportLocation": {
    "publicId": "trl_xxxxxxxxxxxx"
  },
  "countryShare": {
    "publicId": "csh_xxxxxxxxxxxx"
  }
}
'
{
  "publicId": "scr_xxxxxxxxxxxx",
  "lightSocketType": "<string>",
  "amountOfLightSockets": 0,
  "transportLocation": {
    "publicId": "trl_xxxxxxxxxxxx"
  },
  "product": {
    "publicId": "prd_xxxxxxxxxxxx",
    "name": "<string>",
    "ean": "<string>",
    "sku": "<string>"
  },
  "category": {
    "publicId": "cat_xxxxxxxxxxxx",
    "name": "<string>"
  },
  "countryShare": {
    "publicId": "csh_xxxxxxxxxxxx",
    "name": "<string>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "totalWeight": 123,
  "productReplacementRateQuality": 123,
  "productReplacementRateLogistics": 123,
  "functionalUnitValue": 123,
  "energyOperationalConsumption": 123,
  "energyStandbyConsumption": 123,
  "lightSourceOperationalConsumption": 123,
  "lightSourceStandbyConsumption": 123,
  "notes": "<string>"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
lightSocketType
string
required
amountOfLightSockets
number
default:0
required
Required range: x >= 0
totalWeight
number | null
Required range: x >= 0
energyOperationalConsumption
number | null
Required range: x >= 0
energyStandbyConsumption
number | null
Required range: x >= 0
lightSourceOperationalConsumption
number | null
Required range: x >= 0
lightSourceStandbyConsumption
number | null
Required range: x >= 0
notes
string | null
Maximum string length: 255
transportLocation
object
countryShare
object

Response

Successful response

publicId
string
required
Required string length: 16
Example:

"scr_xxxxxxxxxxxx"

lightSocketType
string
required
amountOfLightSockets
number
default:0
required
Required range: x >= 0
transportLocation
object
required
product
object
required
category
object
required
countryShare
object
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
totalWeight
number | null
productReplacementRateQuality
number | null
productReplacementRateLogistics
number | null
functionalUnitValue
number | null
energyOperationalConsumption
number | null
energyStandbyConsumption
number | null
lightSourceOperationalConsumption
number | null
lightSourceStandbyConsumption
number | null
notes
string | null