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

Request
Response
mutation {
linkCoach(input: {
memberId: "TWVtYmVyOjBhMTA3YWM5LTg4Y2EtNGJkYy1iOTdhLWIyODE4NDA1ODVjZA==",
coachId: "Q29hY2g6MTgwNw=="
}) {
success
message
}
}
{
"data": {
"linkCoach": {
"success": true,
"message": "Link updated"
}
}
}