Update a Coach

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

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
    }
  }
}

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

Last updated