TeleWellness Portal
  • Introduction
  • HELPFUL RESOURCES
    • Getting Started
    • FAQ
      • Appointments
      • Meal Plan
  • User Management
    • Roles and Permissions
    • Manage Coaches
      • Coach tab
        • Register a new coach
          • Assign Members
        • Edit an existing coach
      • Calendar tab
        • Appointment Types
        • Appointment Alerts
      • Note Templates tab
    • Manage Members
      • Create a new member
      • Edit member's information
      • Filter members
  • Using the TeleWellness Portal
    • Login and logout to the Portal
    • Navigating the TeleWellness Portal
      • Home
      • Dashboard
      • Admin Dashboard
      • Coach Dashboard
        • Progress Tab
          • Filtering the information
          • Checking the user’s streak progress
          • Checking the user's activities progress
          • Showing the food log history
          • Checking the user's recap questions
          • Checking the user's weight log history
          • Showing user’s program journey
          • Checking user’s water intake history
        • Meal Plan tab
        • Notes tab
        • Appointments tab
        • Lab Tests tab
        • Wellness Plans tab
      • Messages
      • Meal Plans
        • Manage Meal Plans
          • From Scratch
          • Smart Meal Plan
      • Scheduling
      • Wellness Plan
        • Manage Protocols
        • Manage Wellness Plan Templates
    • Note Templates
  • API Reference
    • Generate Authorization Token
    • Appointments
      • Appointment Types
      • Add Appointment Credits
    • Coaches
      • Coach List
      • Update a Coach
      • Create a Coach
      • Invite Coach
    • Members
      • Member List
      • Members List
      • Program List
      • Update member's program
      • Assign Coach to Member
    • Lab Test Reports
      • Lab Test Report List
      • Create a Lab Test Report
      • Update Lab Test Report
      • Delete a Lab Test Report
    • Wellness Plans
      • Create a Supplement Plan for Member
      • Update Member Supplement
      • List Member Supplement Plans
      • Delete Member Supplement Plan
Powered by GitBook
On this page
  • Available argument
  • UpdatePasswordInput object
  • Available Fields
  • Available Fields
  • Example
  1. API Reference
  2. Coaches

Update a Coach

PreviousCoach ListNextCreate a Coach

Last updated 3 years ago

Use the coachUpdate mutation to update the coach name, email or password within the .

Available argument

Argument Name

Is required?

Type

Description

ID

Yes

ID

name

No

String

Coach name

email

No

string

Coach email

password

No

Object that contains the password fields.

UpdatePasswordInput object

Available Fields

Field Name

Type

Description

old

String

Introduce the old password

new

String

Introduce the new password

Available Fields

The following fields will be displayed in the response:

Field Name

Type

Description

success

Boolean

True if the coach information has been updated successfully. Otherwise, False

message

String

Description of the result

coach

Object that returns the coach information

Example

Update the coach name

mutation {
  coachUpdate(
    input: { id: "Q29hY2g6ODk2", name: "Liliana Elizabeth Iriarte Sanabria" }
  ) {
    success
    message
    coach {
      id
      email
      name
      isAdmin
      isDisabled
      createdAt
      updatedAt
    }
  }
}
{
  "data": {
    "coachUpdate": {
      "success": true,
      "message": "Coach updated",
      "coach": {
        "id": "Q29hY2g6ODk2",
        "email": "liliana+coach@suggestic.com",
        "name": "Liliana Elizabeth Iriarte Sanabria",
        "isAdmin": true,
        "isDisabled": false,
        "createdAt": "2021-11-24T18:07:29.189670+00:00",
        "updatedAt": "2022-01-17T21:27:54.241497+00:00"
      }
    }
  }
}

Verify that the information was updated by accessing the My Account option:

Unique Coach ID. Get this ID by executing the query

TeleWellness Portal
coaches
UpdatePasswordInput
Coach