sayren Docs
스토어 설정

구성원 역할 변경

PATCH
/v1/store/members/{userId}
AuthorizationBearer <token>

userToken(계정 스코프) 또는 storeToken(스토어 스코프)

In: header

Path Parameters

userId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

role*string

Value in

  • "ADMIN"
  • "STAFF"

Response Body

application/json

curl -X PATCH "https://example.com/v1/store/members/string" \  -H "Content-Type: application/json" \  -d '{    "role": "ADMIN"  }'
{  "meta": {    "status": 200,    "code": "OK",    "message": "OK",    "isSuccess": true  },  "data": {    "userId": "string",    "role": "ADMIN"  },  "error": null}