---
# System prepended metadata

title: 修改個人會員資訊
tags: [會員]

---

# 修改個人會員資訊

**API 修改紀錄**
|版本|日期|備註|
| ------------ |------------ |------------ |
| v1 |2024/03/06 | 發佈 |
| <font color="#f00">v1.1 |<font color="#f00">2024/12/13 | <font color="#f00">增加會員email修改 |

**修改個人會員資訊**

avatar_file_id 請先使用 [檔案上傳](https://hackmd.io/Lq4vMNGvQkGKmkWzR32jJg) 獲取id後一起儲存回傳

#### 網址
https://{domain}/api/v1/member/update

#### Http Method
POST

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

#### HTTP Body 傳入參數

|欄位名稱|必填|型態|欄位|備註|
| ------------ | :-----------: |:-----------: |------------ |------------ |
|name |Y |string |會員名字 |
|birthday |Y  |string |生日 |
|gender |Y  |int |0:未設定/1:男/2:女 |
|nickname |Y  |string |暱稱 |
|password |N  |string |密碼 |
|<font color="#f00">account |Y |string |<font color="#f00">會員Email帳號 |
|avatar_file_id |N|int |照片ID |

#### HTTP Response 回傳參數

|Name|Type|說明|
| ------------ | ------------ |------------ |


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

#### Json Example
Request Json
```json
{
    "account":"test@gmail.com"
    "name": "Jacksons",
    "nickname": "Jacksons",
    "avatar_file_id": 2,
    "gender": 1,
    "birthday": "2024-01-06",
}
```

Response Json Success
```json
{
    "status": true,
    "code": 200,
    "message": "成功"
}
```

Response Json Error
```json
{
    "status": false,
    "code": 401,
    "message": "Token is Invalid",
    "result": null
}
```
