---
# System prepended metadata

title: 潛水錶管理_新增潛水錶
tags: [手錶]

---

# 潛水錶管理_新增潛水錶
:::info
2024/02/15 修正發佈
:::
**潛水錶管理_新增潛水錶**

#### 網址
https://{domain}/api/v1/member-to-device/binding

#### Http Method
POST

#### HTTP Header
accept-language : language code
apikey : apk key

#### HTTP Request Body 傳入參數

|欄位名稱|必填|型態|欄位|備註|
| ------------ | :-----------: |:-----------: |------------ |------------ |
|remoteId |Y |string |手錶ID ||
|firmware |Y |string |韌體版本 | |
|platformName |Y |string |手錶名稱 | |
|sn |Y |string |序號 | |


#### HTTP Response 回傳參數

|Name|Type|說明|
| ------------ | ------------ |------------ |
|status  |boolen |狀態 |
|code  |string |Response Code |
|message  |string |說明 |
|result  |int |ID |

#### Request Header Authoriztion
```json
{
    "accept-language" : "en",     //or 'zh_tw'
    "apikey" : "api key string"
}
```

#### Json Example
Request Json
```json
{
    "remoteId": "3C212D1C-545C-B0AF-6710-E117A65AA568",
    "firmware": "test678",
    "platformName": "Crest-CR4",
    "sn":"123123"
}
```

Response Json Success
```json

{
    "status": true,
    "code": 200,
    "message": "手錶綁定成功",
    "result": 1
}
```

Response Json Error
```json
{
    "status": false,
    "message": "手錶已綁定",
    "code": 400
}
{
    "status": false,
    "message": "此手錶韌體不存在",
    "code": 400
}
{
    "status": false,
    "message": "此型號手錶不存在",
    "code": 400
}
```
