> ## 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.

# Attach Access List to Group

> Attach an access list to a group. Every API key in the group inherits the list, unless the key has its own access list. Requires an API key with write manage permissions.

Attach an access list to a group. Every API key in the group inherits the list, unless the key has its own access list. Returns `409 Conflict` if the list is already attached to the group.

[Access Lists docs →](https://docs.requesty.ai/features/access-lists.md#attach-an-access-list-to-a-group)


## OpenAPI

````yaml PUT /v1/manage/group/{group_id}/access-list/{access_list_id}
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}/access-list/{access_list_id}:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    put:
      summary: Attach access list to group
      description: >-
        Attach an access list to a group. Every API key in the group inherits
        the list, unless the key has its own access list. Requires an API key
        with write manage permissions.
      operationId: attachGroupAccessList
      parameters:
        - name: group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The group ID
          example: 123e4567-e89b-12d3-a456-426614174000
        - name: access_list_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The access list ID
          example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
      responses:
        '200':
          description: Access list attached to the group successfully
        '400':
          description: Bad request - invalid group ID or access list ID.
          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 access list does not exist in your
            organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict - the access list is already attached to this group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.