上传数据 API
上传运动数据 api
上传运动数据
上传运动数据到后台
POST
/openapi/v1/uploads/
Payload
{
"name": "骑行",
"detail": "",
"fit_filename": "",
"md5": "",
"file_type": "fit"
}
Response 201
{
"id": 0,
"name": "骑行",
"detail": "",
"fit_file": "https://example.com",
"fit_filename": "",
"md5": "",
"sport": 0,
"client_id": 0,
"fit_url": "https://example.com",
"file_type": "fit"
}
Error Response
400
{
"code": 400,
"msg": "API Limited",
"data": {}
}
401
{
"code": 401,
"msg": "Unauthorized Error",
"data": {}
}
500
{
"code": 500,
"msg": "Server Error",
"data": {}
}