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

# Assign Members

> Assign writers and designers to a client

<Note>Requires Admin or Manager role.</Note>

## Path Parameters

<ParamField path="id" type="string" required>
  Client UUID
</ParamField>

## Request Body

<ParamField body="writerIds" type="array" required>
  Array of user UUIDs to assign as writers
</ParamField>

<ParamField body="designerIds" type="array" required>
  Array of user UUIDs to assign as designers
</ParamField>

## Response

The updated client object with resolved member details.

<RequestExample>
  ```bash cURL theme={null}
  curl -X PUT "https://api.hitler.app/api/clients/client-uuid-1/members" \
    -H "Authorization: Bearer YOUR_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{"writerIds": ["user-uuid-1"], "designerIds": ["user-uuid-2"]}'
  ```

  ```typescript TypeScript theme={null}
  await api.assignClientMembers("client-uuid-1", {
    writerIds: ["user-uuid-1"],
    designerIds: ["user-uuid-2"],
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "client-uuid-1",
    "name": "Acme Corp",
    "assignedWriters": ["user-uuid-1"],
    "assignedDesigners": ["user-uuid-2"],
    "writers": [{"id": "user-uuid-1", "name": "Alice", "email": "alice@example.com"}],
    "designers": [{"id": "user-uuid-2", "name": "Bob", "email": "bob@example.com"}]
  }
  ```
</ResponseExample>
