Skip to main content
PATCH
/
v1
/
material
/
{uuid}
Edit a material
curl --request PATCH \
  --url https://app.variable.global/api/v1/material/{uuid} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Product Name",
  "description": "A descriptive description",
  "notes": "Internal notes about this product",
  "sku": "SKU123",
  "syncId": "sync123",
  "cpcCode": "CPC123",
  "unit": "kg",
  "weight": {
    "quantity": 100,
    "unit": "kg"
  },
  "packagingWeight": {
    "quantity": 10,
    "unit": "kg"
  },
  "recycledPercent": 30,
  "footprint": {
    "CO2e": {
      "A1": "1200.0",
      "A2": "30.0",
      "A3": "4.0",
      "A4": "0.5",
      "B1": "0.06",
      "B2": "0.007",
      "B3": "0.0008",
      "B4": "",
      "B5": "",
      "C1": "",
      "C2": "",
      "C3": "",
      "C4": "",
      "D": ""
    }
  },
  "dataQualityIndicators": {
    "documentationYear": 2019,
    "coveragePercent": 80,
    "specificPercent": 40,
    "technologicalDQR": 1,
    "geographicalDQR": 1,
    "completenessDQR": 1,
    "reliabilityDQR": 1
  },
  "taxonomy": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Material",
    "path": "material"
  },
  "geoLocation": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Pittsburgh, PA"
  },
  "location": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Pittsburgh Office"
  },
  "startDate": "2021-01-01T00:00:00.000Z",
  "endDate": "2021-01-01T00:00:00.000Z",
  "dataSource": "model"
}
'
{
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "Material Name",
  "description": "A descriptive description",
  "notes": "Internal notes about this product",
  "sku": "SKU123",
  "syncId": "sync123",
  "cpcCode": "CPC123",
  "unit": "kg",
  "weight": {
    "quantity": 100,
    "unit": "kg"
  },
  "packagingWeight": {
    "quantity": 10,
    "unit": "kg"
  },
  "recycledPercent": 30,
  "footprint": {
    "CO2e": {
      "A1": "1200.0",
      "A2": "30.0",
      "A3": "4.0",
      "A4": "0.5",
      "B1": "0.06",
      "B2": "0.007",
      "B3": "0.0008",
      "B4": "",
      "B5": "",
      "C1": "",
      "C2": "",
      "C3": "",
      "C4": "",
      "D": "",
      "totalCarbonFootprint": "1234.5678",
      "productCarbonFootprint": "1234.0",
      "upstream": "1230.0",
      "direct": "4.0",
      "downstream": "0.5678",
      "A1_A3": "1234.0"
    }
  },
  "dataQualityIndicators": {
    "documentationYear": 2019,
    "coveragePercent": 80,
    "specificPercent": 40,
    "technologicalDQR": 1,
    "geographicalDQR": 1,
    "completenessDQR": 1,
    "reliabilityDQR": 1,
    "averagePercent": 60,
    "temporalDQR": 3
  },
  "taxonomy": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Material",
    "path": "material"
  },
  "geoLocation": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Pittsburgh, PA"
  },
  "location": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "Pittsburgh Office"
  },
  "startDate": "2021-01-01T00:00:00.000Z",
  "endDate": "2021-01-01T00:00:00.000Z",
  "dataSource": "model",
  "image": "https://app.variable.global/uploads/image.jpg",
  "modeledWeight": {
    "quantity": 100,
    "unit": "kg"
  },
  "modeledPackagingWeight": {
    "quantity": 12.5,
    "unit": "kg"
  },
  "modeledRecycledPercent": 27.5,
  "impacts": {
    "GWP-fossil": {
      "unit": "kgCO2e",
      "method": "Mixed",
      "totalCarbonFootprint": "10",
      "A1_A3": "10"
    },
    "ODP": {
      "unit": "kgCFC11e",
      "method": "EN15804+A2 - Core impact categories and indicators",
      "A1_A3": "0.0000012"
    },
    "AP": {
      "unit": "molH+e",
      "method": "EN15804+A2 - Core impact categories and indicators",
      "A1_A3": "2"
    }
  },
  "dataQualityRating": 1.4,
  "created": "2021-01-01T00:00:00.000Z",
  "updated": "2021-01-31T23:59:59.000Z",
  "supplier": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "syncId": "sync123",
    "name": "Company Name"
  }
}
Requires permission:

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uuid
string<uuid>
required

Body

application/json
uuid
string<uuid>
required
name
string
Example:

"Product Name"

description
string
Example:

"A descriptive description"

notes
string
Example:

"Internal notes about this product"

sku
string
Example:

"SKU123"

syncId
string

An identifier to use when syncing data with other systems. Read more

Example:

"sync123"

cpcCode
string
Example:

"CPC123"

unit
string

The unit code (e.g. kg, lbs, etc.). All unit codes can be found in the List Units endpoint.

Example:

"kg"

weight
object

The user-declared weight of the product. On read responses, compare with the server-computed modeledWeight to mass-balance the product against its bill of materials.

packagingWeight
object

The user-declared weight of the product's packaging. On read responses, compare with the server-computed modeledPackagingWeight to mass-balance packaging against its bill of materials.

recycledPercent
number

The user-declared recycled content of the product as a percentage (0–100). A 0 is a declared zero; omit the field when undeclared. On read responses, compare with the server-computed modeledRecycledPercent.

Example:

30

footprint
object

Using dataSource: external allows setting certain footprint.CO2e values. The values are computed all other dataSources.

dataQualityIndicators
object
taxonomy
object

A reference to a taxonomy category, including its machine-readable path.

geoLocation
object
location
object
startDate
string

ISO 8601 date

Example:

"2021-01-01T00:00:00.000Z"

endDate
string

ISO 8601 date

Example:

"2021-01-01T00:00:00.000Z"

dataSource
enum<string>
Available options:
model,
external
Example:

"model"

Response

A material

uuid
string<uuid>
name
string
Example:

"Material Name"

description
string
Example:

"A descriptive description"

notes
string
Example:

"Internal notes about this product"

sku
string
Example:

"SKU123"

syncId
string

An identifier to use when syncing data with other systems. Read more

Example:

"sync123"

cpcCode
string
Example:

"CPC123"

unit
string

The unit code (e.g. kg, lbs, etc.). All unit codes can be found in the List Units endpoint.

Example:

"kg"

weight
object

The user-declared weight of the product. On read responses, compare with the server-computed modeledWeight to mass-balance the product against its bill of materials.

packagingWeight
object

The user-declared weight of the product's packaging. On read responses, compare with the server-computed modeledPackagingWeight to mass-balance packaging against its bill of materials.

recycledPercent
number

The user-declared recycled content of the product as a percentage (0–100). A 0 is a declared zero; omit the field when undeclared. On read responses, compare with the server-computed modeledRecycledPercent.

Example:

30

footprint
object
deprecated

Deprecated — use impacts["GWP-fossil"]. Kept for backwards compatibility.

dataQualityIndicators
object
taxonomy
object

A reference to a taxonomy category, including its machine-readable path.

geoLocation
object
location
object
startDate
string

ISO 8601 date

Example:

"2021-01-01T00:00:00.000Z"

endDate
string

ISO 8601 date

Example:

"2021-01-01T00:00:00.000Z"

dataSource
enum<string>
Available options:
model,
external
Example:

"model"

image
string
Example:

"https://app.variable.global/uploads/image.jpg"

modeledWeight
object
read-only

Read-only. Server-computed sum of the model's A1–A3 product material input weights (Material group "Product"; excludes packaging and ancillary), in the same Amount shape as the declared weight. Compare the two to mass-balance the product: weight is the value you set, while modeledWeight is derived from the bill of materials. Present only when the model has qualifying product inputs. Ignored on POST/PATCH.

modeledPackagingWeight
object
read-only

Read-only. Server-computed sum of the model's A1–A3 packaging input weights (Material group "Packaging"), in the same Amount shape as the declared packagingWeight. Compare the two to mass-balance packaging: packagingWeight is the value you set, while modeledPackagingWeight is derived from the bill of materials. Present only when the model has qualifying packaging inputs. Ignored on POST/PATCH.

modeledRecycledPercent
number
read-only

Read-only. Server-computed weight-weighted average of the contributing inputs' recycled content (0–100). Compare against the declared recycledPercent: recycledPercent is the value you set, while modeledRecycledPercent is derived from the bill of materials. Present only when the model has contributing inputs. Ignored on POST/PATCH.

Example:

27.5

impacts
object

Environmental impact indicators keyed by canonical code (e.g. GWP-fossil, ODP, AP). Which indicators appear is controlled by the impacts query parameter — by default only GWP-fossil is returned.

Example:
{
"GWP-fossil": {
"unit": "kgCO2e",
"method": "Mixed",
"totalCarbonFootprint": "10",
"A1_A3": "10"
},
"ODP": {
"unit": "kgCFC11e",
"method": "EN15804+A2 - Core impact categories and indicators",
"A1_A3": "0.0000012"
},
"AP": {
"unit": "molH+e",
"method": "EN15804+A2 - Core impact categories and indicators",
"A1_A3": "2"
}
}
dataQualityRating
number
Example:

1.4

created
string

ISO 8601 date

Example:

"2021-01-01T00:00:00.000Z"

updated
string

ISO 8601 date

Example:

"2021-01-31T23:59:59.000Z"

supplier
object