PATCH
/
removals
/
{id}
/
component_attributions
Patch Component Attributions
curl --request PATCH \
  --url https://api.sandbox.isometric.com/mrv/v0/removals/{id}/component_attributions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '{
  "components_to_add": [
    {
      "attribution_factor": 1,
      "component_group_key": "bio-oil-storage",
      "component_id": "cmp_1EP2SB7MZ1S036PY"
    }
  ],
  "components_to_remove": [
    "cmp_1EP2SB7MZ1S036PY"
  ]
}'
{
  "co2e_net_removed_kg": 123,
  "co2e_net_removed_standard_deviation_kg": 123,
  "co2e_net_removed_without_discount_kg": 123,
  "completed_on": "2023-12-25",
  "feedstock_type_id": "ftt_1D7KZ1P761S0G7BN",
  "ghg_statement_id": "ggs_1GDQJ99Z51S0DYW9",
  "id": "rmv_1EEM6NJXX1S0EXKD",
  "label_ids": [
    "lbl_1DDK2MJ2D1S0SR6H"
  ],
  "started_on": "2023-12-25",
  "supplier_reference_id": "<string>"
}
Components can be fully or partially attributed to removals via components_to_add parameter. If you want to attribute only part of the component, set components_to_add[].attribution_factor to a value greater than 0.0 and less than or equals to 1.0. To change attribution amount for an already attributed component, simply add it again. Sum of all component’s attribution can’t be greater than 1.0. Components can also be removed (“fully unattributed”) from a removal via components_to_remove.

Authorizations

Authorization
string
header
required

A JWT Bearer token header for authentication and authorization, in the format Authorization: Bearer <token>

Headers

x-client-secret
string
required

A secret token identifying the client connecting to the API

Examples:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Path Parameters

id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.