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

# Update Group Member Role

> Update the role of a member in a group. Requires an API key with write manage permissions.

Update the role of a member in a group.


## OpenAPI

````yaml PUT /v1/manage/group/{group_id}/member/{member_id}/role
openapi: 3.0.3
info:
  title: Requesty Management API
  description: >-
    Requesty Management API for API key management, groups, members, and
    organization settings.
  version: 1.0.0
servers:
  - url: https://api-v2.requesty.ai
    description: Management API endpoint
security:
  - BearerAuth: []
paths:
  /v1/manage/group/{group_id}/member/{member_id}/role:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    put:
      summary: Update group member role
      description: >-
        Update the role of a member in a group. Requires an API key with write
        manage permissions.
      operationId: updateGroupMemberRole
      parameters:
        - name: group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The group ID
          example: 123e4567-e89b-12d3-a456-426614174000
        - name: member_id
          in: path
          required: true
          schema:
            type: string
          description: The user ID of the member whose role should be updated
          example: user_2abCdEfGhIjKlMnOpQrStUvWxYz
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMemberRoleRequest'
      responses:
        '200':
          description: Member role updated successfully
        '400':
          description: Bad request - invalid group ID, member ID, or role.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or invalid Authorization header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - API key does not have write manage permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - the group or member does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UpdateMemberRoleRequest:
      type: object
      required:
        - role
      properties:
        role:
          type: string
          enum:
            - admin
            - member
          description: The new role to assign to the member
          example: admin
      example:
        role: admin
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - origin
            - message
          properties:
            origin:
              type: string
              enum:
                - router
                - provider
              description: >-
                Whether the error originated from Requesty's router or an
                upstream provider.
            message:
              type: string
              description: Human-readable error description.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````