FCALC
  1. METHOD API
FCALC
  • CALC API
    • 碳排放计算接口
      POST
  • LCI API
    • 创建LCI数据集
      POST
    • 更新LCI数据集
      PUT
    • 获取所有LCI数据集
      GET
    • 删除LCI数据集
      DELETE
    • 导入LCI数据
      POST
    • 分片查询LCI数据
      POST
    • LCI向量嵌入
      POST
    • LCI向量近似查询
      POST
    • LCI向量近似查询
      POST
  • LCIA API
    • 创建LCIA数据集
      POST
    • 更新LCIA数据集
      PUT
    • 获取所有LCIA数据集
      GET
    • 删除LCIA数据集
      DELETE
    • 导入LCIA数据
      POST
    • 分片查询LCIA数据
      POST
  • METHOD API
    • 创建计算方法
      POST
    • 获取所有计算方法
      GET
    • 更新计算方法
      PUT
    • 删除计算方法
      DELETE
    • 重新计算LCI方法
      PUT
  • AICHAT(TEMP)
    • 文档解析
      POST
    • 文档分析
      POST
  • CHROMA
  1. METHOD API

更新计算方法

开发环境
http://localhost:9000
开发环境
http://localhost:9000
PUT
/method
计算方法
更新现有的计算方法

Request

Body Params application/json
id
string 
required
方法ID
methodName
string 
required
方法名称
methodCode
string 
required
方法编码
Example
{
    "id": "string",
    "methodName": "string",
    "methodCode": "string"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost:9000/method' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "string",
    "methodName": "string",
    "methodCode": "string"
}'

Responses

🟢200成功
application/json
更新成功
Body
code
integer 
optional
状态码
message
string 
optional
消息
data
object 
optional
数据
timestamp
integer <int64>
optional
时间戳
Example
{
    "code": 0,
    "message": "string",
    "data": {},
    "timestamp": 0
}
Modified at 2025-03-13 01:54:37
Previous
获取所有计算方法
Next
删除计算方法
Built with