> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/telewellness-portal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/telewellness-portal/api-reference/members/assign-coach-to-member.md).

# Assign Coach to Member

Use `linkCoach` to assign a Coach to a member.

### Required Arguments

| Argument   | Type | Description                                                                                             |
| ---------- | ---- | ------------------------------------------------------------------------------------------------------- |
| `memberId` | ID   | Unique ID of a [member](https://docs.suggestic.com/coaching-portal/api-references/members/members-list) |
| `coachId`  | ID   | Unique ID of a coach                                                                                    |

## Available Fields

The following fields will be displayed in the response:

| **Field Name** | **Type** | **Description**                                                                 |
| -------------- | -------- | ------------------------------------------------------------------------------- |
| `success`      | string   | **True** if the coach has has been assigned  successfully. Otherwise, **False** |
| `message`      | string   | Description of the result                                                       |

## Example

{% tabs %}
{% tab title="Request" %}

```graphql
mutation {
  linkCoach(input: {
            memberId: "TWVtYmVyOjBhMTA3YWM5LTg4Y2EtNGJkYy1iOTdhLWIyODE4NDA1ODVjZA==",
            coachId: "Q29hY2g6MTgwNw=="
  }) {
    success
    message
  }
}

```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "linkCoach": {
      "success": true,
      "message": "Link updated"
    }
  }
}
```

{% endtab %}
{% endtabs %}
