Retrieves a list of data item details.
Operation description
Retrieves a list of data item details for the current enterprise.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
energy:GetDataItemList |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/carbon/emission/data/item/list HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request parameters. |
|
| code |
string |
Yes |
The enterprise code. |
C-202302-01 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response struct. |
||
| requestId |
string |
The request ID. |
83A5A7DD-8974-5769-952E-590A97BEA34E |
| data |
array<object> |
The returned data. |
|
|
object |
|||
| unit |
string |
The unit. |
kg |
| period |
integer |
The data entry method. A value of 1 indicates a monthly value. A value of 2 indicates a yearly value. |
1 |
| code |
string |
The API data identifier. |
demo_api_code |
| name |
string |
The name of the data item. |
锅炉数据 |
Examples
Success response
JSON format
{
"requestId": "83A5A7DD-8974-5769-952E-590A97BEA34E",
"data": [
{
"unit": "kg",
"period": 1,
"code": "demo_api_code",
"name": "锅炉数据"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.