POST
/
components
curl --request POST \
  --url https://api.sandbox.isometric.com/mrv/v0/components \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <x-client-secret>' \
  --data '{
  "activity_completed_at": "2023-11-07T05:31:56Z",
  "activity_started_at": "2023-11-07T05:31:56Z",
  "component_blueprint_key": "<string>",
  "description": "<string>",
  "display_name": "<string>",
  "inputs": [
    {
      "__typename": "CreateComponentListInput",
      "datapoint_ids": [
        "dtp_1DVKHKS101S0Q61Q"
      ],
      "input_key": "<string>"
    }
  ],
  "project_id": "prj_1CTWZQGKE1S0VAXA",
  "supplier_reference_id": "<string>"
}'
{
  "activity_completed_at": "2023-11-07T05:31:56Z",
  "activity_started_at": "2023-11-07T05:31:56Z",
  "allocation_strategy": "ESTIMATED_PROJECT_TONNAGE",
  "blueprint_key": "<string>",
  "description": "<string>",
  "display_name": "<string>",
  "id": "cmp_1EP2SB7MZ1S036PY",
  "scope": "REMOVAL",
  "supplier_reference_id": "<string>",
  "type": "ACTIVITY"
}

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

Example:

"Syou3EZiO5vuMEgNyBeA8cjEMYOnQDwP"

Body

application/json
activity_completed_at
string
required

The date at which the physical activity related to this component started

activity_started_at
string
required

The date by which the physical activity related to this component finished

component_blueprint_key
string
required

The key of the blueprint which we are deriving this component from.

display_name
string
required
Required string length: 1 - 100
inputs
object[]
required

A list of component inputs. This must match the list of inputs on the component blueprint. See the component-blueprints endpoint.

project_id
string
required

The project in which to create the component

Required string length: 20 - 36
Example:

"prj_1CTWZQGKE1S0VAXA"

supplier_reference_id
string
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.

Required string length: 1 - 100
description
string | null

An optional description that can be used to add more context to the component

Response

200
application/json
Successful Response
activity_completed_at
string | null
required
activity_started_at
string | null
required
blueprint_key
string | null
required
description
string
required
display_name
string
required
id
string
required
Required string length: 20 - 36
Example:

"cmp_1EP2SB7MZ1S036PY"

scope
enum<string>
required
Available options:
REMOVAL,
GHG_STATEMENT,
PROJECT
supplier_reference_id
string | null
required
type
enum<string>
required
Available options:
ACTIVITY,
COUNTERFACTUAL,
SEQUESTRATION,
LOSS,
REDUCTION
allocation_strategy
enum<string> | null

Attribution strategy, manages how project-scoped components are distributed across GHG statements; value will be Null if scope is not of scope project

Available options:
ESTIMATED_PROJECT_TONNAGE,
MANUAL,
CUSTOM_TIME_PERIOD,
ESTIMATED_PROJECT_LIFETIME