Generates a report for a specified carbon footprint.
Operation description
This operation creates a task to generate a carbon footprint report for a specified product. You can call a query operation to check the status of the task. After the report is generated, you can call other query operations to view the results.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:GenerateResult |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/carbon/footprint/result/generate HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| code |
string |
Yes |
The enterprise code. |
C-20080808-1 |
| productId |
integer |
Yes |
The product ID. |
1024 |
| productType |
integer |
Yes |
The product type. Set this to `1` to request a product carbon footprint, or `5` to request a supply chain carbon footprint. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. This is a unique value for each request. Use this ID to troubleshoot issues. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
boolean |
The returned data. A value of `true` indicates that the request was successful. A value of `false` indicates that the request failed. |
true |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E",
"data": true
}
Error codes
See for a complete list.
Release notes
See Release Notes for a complete list.