> 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/update-members-program.md).

# Update member's program

Use the `updateMemberProgram` to update the program assigned to a member.

### Required Arguments

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

## Available Fields

The following fields will be displayed in the response:

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

## Example

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

```graphql
mutation {
  updateMemberProgram(input: {
            memberId: "TWVtYmVyOjBhMTA3YWM5LTg4Y2EtNGJkYy1iOTdhLWIyODE4NDA1ODVjZA==",
            programId: "UHJvZ3JhbTo0NDIzYTgwNy0wNGFiLTQwOGItODk1Mi00YWU5NzA5NmQ2YjQ="
  }) {
    success
    message
  }
}

```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateMemberProgram": {
      "success": true,
      "message": "Member's program updated"
    }
  }
}
```

{% endtab %}
{% endtabs %}
