# Update a member (/zh/growsocmed/docs/api-reference/members/update-member)

Change a member's role or access

PATCH /members/{userId}

```json
{
  "tags": [
    "Members"
  ],
  "summary": "Update a member",
  "parameters": [
    {
      "schema": {
        "type": "string",
        "format": "uuid"
      },
      "required": true,
      "name": "userId",
      "in": "path"
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "role": {
              "type": "string",
              "enum": [
                "admin",
                "member"
              ]
            },
            "permissions": {
              "type": "object",
              "properties": {
                "posts": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "ideas": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "media": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "links": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "comments": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "inbox": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "automations": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "agents": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "insights": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "accounts": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                },
                "members": {
                  "type": "string",
                  "enum": [
                    "none",
                    "view",
                    "manage"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "ok": {
                "type": "boolean"
              }
            },
            "required": [
              "ok"
            ]
          }
        }
      }
    }
  },
  "operationId": "update-member",
  "description": "Change a member's role or access"
}
```