Skip to content

Update Member Group

Description

更新會員群組資料。

Resource

PATCH /manager/v1/member/group

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Request Body Parameters

Name Type Description
company_id string 公司編號
member_group_id string 會員群組編號
imgfile1 string 會員群組圖片1,可以是 base64 或 CDN URL 或空字串
imgfile2 string 會員群組圖片2,可以是 base64 或 CDN URL 或空字串
imgfile3 string 會員群組圖片3,可以是 base64 或 CDN URL 或空字串
imgfile4 string 會員群組圖片4,可以是 base64 或 CDN URL 或空字串
imgfile5 string 會員群組圖片5,可以是 base64 或 CDN URL 或空字串
member_card_image_file string 會員卡圖片,可以是 base64 或 CDN URL 或空字串

Request Example

{
  "company_id": "00000000",
  "member_group_id": "1",
  "imgfile1": "data:image/png;base64...",
  "imgfile2": "",
  "imgfile3": "",
  "imgfile4": "",
  "imgfile5": "",
  "member_card_image_file": ""
}

Response Body Parameters

Name Type Description
message string 回傳訊息
updated_images Updated Images 群組圖片更新內容

Response Body Parameters - Updated Images

Name Type Description
imgfile1 string 會員群組圖片1
imgfile2 string 會員群組圖片2
imgfile3 string 會員群組圖片3
imgfile4 string 會員群組圖片4
imgfile5 string 會員群組圖片5
member_card_image_file string 會員卡圖片

Response Body Example

Status-Code: 200

{
  "message": "會員群組更新成功",
  "updated_images": {
    "imgfile1": "https://lafreshcdn.blob.core.windows.net/vipgrp/00000000-1-imgfile1-1733733084.png",
    "imgfile2": "",
    "imgfile3": "",
    "imgfile4": "",
    "imgfile5": "",
    "member_card_image_file": ""
  }
}