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

# Add Member

Add a user as a member of a target.

## **POST** `/:target/:target_id/members`

### Path Parameters

| Parameter   | Type   | Required | Description                           |
| :---------- | :----- | :------- | :------------------------------------ |
| `target`    | string | Yes      | Resource type: `orgs` or `blobs`.     |
| `target_id` | string | Yes      | The unique ID of the target resource. |

### Request Body

| Parameter | Type   | Required | Description                                  |
| :-------- | :----- | :------- | :------------------------------------------- |
| `user_id` | string | Yes      | The ID of the user to add.                   |
| `role`    | string | Yes      | Role to assign: `admin`, `write`, or `read`. |

### Response

| Parameter | Type   | Description                |
| :-------- | :----- | :------------------------- |
| `member`  | object | The created member object. |

### Example

<CodeGroup>
  ```json Request theme={null}
  {
    "user_id": "user_789",
    "role": "write"
  }
  ```

  ```json Response theme={null}
  {
    "member": {
      "id": "mem_002"
    }
  }
  ```
</CodeGroup>
