---
title: "Patch Ghg Entry Components"
method: PATCH
path: "/ghg_entries/{id}/component_attributions"
---

# Patch Ghg Entry Components

`PATCH /ghg_entries/{id}/component_attributions`

Change component attributions for the GHG entry.

## Path parameters

- `id` string, required

## Headers

- `x-client-secret` string, required — A secret token identifying the client connecting to the API

## Request body

- PatchGhgEntryComponentAttributionsRequest
  - `components_to_add` union — Components to be attributed to the GHG entry.
    - GhgEntryComponentToAttribute[]
      - `component_id` string, required — ID of the component to add to the GHG entry.
      - `component_group_key` string, required — Key of a component group that this component should be applied to in the GHG entry.
      - `attribution_factor` number — A float in range of (0, 1] for the fraction of the CO2e flux of the component that is to be attributed to this GHG entry. 1.0 means all of the component should be attributed. If not supplied, defaults to 1.0.
    - Undefined — An explicit representation of an undefined value in the Isometric REST API. Used, for example, to distinguish between explicit null inputs that clear a property, and not provided inputs which leave the property as is.
      - `__typename` 'Undefined' — Contains the name of the model (formally, OpenAPI Schema Object). Used to determine the type of data, for example when two different types are unioned.
  - `components_to_remove` union — Components to be fully removed from the GHG entry.
    - string[]
    - Undefined — An explicit representation of an undefined value in the Isometric REST API. Used, for example, to distinguish between explicit null inputs that clear a property, and not provided inputs which leave the property as is.
      - `__typename` 'Undefined' — Contains the name of the model (formally, OpenAPI Schema Object). Used to determine the type of data, for example when two different types are unioned.

## Response `200`

Successful Response

- GhgEntry
  - `id` string, required
  - `supplier_reference_id` string, nullable, required — A string that must be unique for all resources created by a specific supplier. It can be used by a client to identify the correct objects in their system.
  - `started_on` string, date, required
  - `completed_on` string, date, required
  - `credit_type` 'REDUCTION' | 'REMOVAL', required
  - `co2e_net_removed_kg` number, required — The CO₂e removed by this GHG entry once uncertainty discounting has been applied
  - `co2e_net_removed_without_discount_kg` number, required — The CO₂e removed by this GHG entry before any uncertainty discounting has been applied
  - `co2e_net_removed_standard_deviation_kg` number, nullable, required — The standard deviation of the CO₂e net removed and therefore the uncertainty discount applied to the GHG entry
  - `ghg_statement_id` string, nullable, required — The GHG statement ID that this entry is associated with. If null, the entry is in draft and has not been submitted for verification.
  - `feedstock_type_id` string, nullable, required — The feedstock type ID that this entry is associated with.
  - `risk_of_reversal_percentage` number, nullable, required — The percentage of credits contributed to the buffer pool due to risk of reversal.
  - `credit_allocation` CreditAllocation, required
    - `buffer_pool_contribution_kg` integer, required — The number of credits (in kg CO₂e) contributed to the buffer pool, computed as risk_of_reversal_percentage × total issuable credits.
    - `supplier_allocation_kg` integer, required — The number of credits (in kg CO₂e) issued to the supplier, computed as total issuable credits minus buffer pool contribution.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/isometric/apis/isometric-certify-data-ingestion-api.md) · [All operations](https://skmtc.net/isometric/apis/isometric-certify-data-ingestion-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/isometric/isometric-certify-data-ingestion-api/versions/9819e9c8ccf0/schema)
