Checks the completion status of a report generation task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:IsCompleted |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/carbon/footprint/result/completed 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 the value to `1` to request the carbon footprint of a product. Set the value to `5` to request the carbon footprint of a supply chain. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| requestId |
string |
The ID of the request. Each request has a unique ID that you can use to troubleshoot issues. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
object |
The returned data. |
|
| modifiedTime |
integer |
The time when the status was last updated. This is a UNIX timestamp in milliseconds. Example: 1711438780000. |
1711438780000 |
| taskKey |
string |
The unique key of the generation task. |
550c2b7b-f2e0-4176-ab0a-53ea4b355721 |
| taskShortResult |
string |
This parameter is not in use. The value is empty. |
null |
| taskStatus |
string |
The status of the report generation task. Valid values: `running` (the report is being generated), `success` (the report is generated), and `error` (the report failed to be generated). If the task fails, check and correct the model, and then generate the report again. |
running |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E",
"data": {
"modifiedTime": 1711438780000,
"taskKey": "550c2b7b-f2e0-4176-ab0a-53ea4b355721",
"taskShortResult": "null",
"taskStatus": "running"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.