> ## Documentation Index
> Fetch the complete documentation index at: https://infisical.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update member role

> Change a member's Agent Vault role



## OpenAPI

````yaml PATCH /api/v1/agent-vault/members/{actorType}/{actorId}
openapi: 3.0.3
info:
  title: Infisical API
  description: List of all available APIs that can be consumed
  version: 0.0.1
servers:
  - url: https://us.infisical.com
    description: Production server (US)
  - url: https://eu.infisical.com
    description: Production server (EU)
  - url: http://localhost:8080
    description: Local server
security: []
paths:
  /api/v1/agent-vault/members/{actorType}/{actorId}:
    patch:
      tags:
        - Agent Vault Members
      description: Change a member's Agent Vault role
      operationId: updateAgentVaultMemberRole
      parameters:
        - schema:
            type: string
            enum:
              - users
              - groups
              - machine-identities
          in: path
          name: actorType
          required: true
          description: Whether this member is a user, a machine identity or a group.
        - schema:
            type: string
            format: uuid
          in: path
          name: actorId
          required: true
          description: The ID of the user, machine identity or group.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                role:
                  type: string
                  enum:
                    - admin
                    - member
                  description: 'The Agent Vault role: admin or member.'
              required:
                - role
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  member:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        description: The ID of the access bundle membership.
                      role:
                        type: string
                        description: 'The Agent Vault role: admin or member.'
                      createdAt:
                        type: string
                        format: date-time
                        description: When the access bundle was granted.
                      actor:
                        anyOf:
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - user
                                description: >-
                                  Whether this member is a user, a machine
                                  identity or a group.
                              id:
                                type: string
                                format: uuid
                                description: The ID of the user, machine identity or group.
                            required:
                              - type
                              - id
                            additionalProperties: false
                            title: User
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - machineIdentity
                                description: >-
                                  Whether this member is a user, a machine
                                  identity or a group.
                              id:
                                type: string
                                format: uuid
                                description: The ID of the user, machine identity or group.
                            required:
                              - type
                              - id
                            additionalProperties: false
                            title: Machine identity
                          - type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - group
                                description: >-
                                  Whether this member is a user, a machine
                                  identity or a group.
                              id:
                                type: string
                                format: uuid
                                description: The ID of the user, machine identity or group.
                            required:
                              - type
                              - id
                            additionalProperties: false
                            title: Group
                    required:
                      - id
                      - role
                      - createdAt
                      - actor
                    additionalProperties: false
                required:
                  - member
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 400
                  message:
                    type: string
                  error:
                    type: string
                  details: {}
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 401
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 403
                  message:
                    type: string
                  details: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 404
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 422
                  message: {}
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - error
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  reqId:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 500
                  message:
                    type: string
                  error:
                    type: string
                required:
                  - reqId
                  - statusCode
                  - message
                  - error
                additionalProperties: false

````