Create a Coach
Last updated
Last updated
In order to create a coach we require to use a combination of two mutations createUser
and makeCoach
.
createUser
will create the new user inside the console while makeCoach
will grant access to the coaching portal.
Both should be run on our "console API", so you will need to generate the "Authorization Token" which is required as an authorization header (example below).
The following fields will be displayed in the response:
Generate access token
Create coach
Argument Name
Is required?
Type
Description
Yes
string
Console Admin email
password
Yes
string
Object that contains the password fields.
Field Name
Type
Description
String
Coach user email
name
String
Coach name
password
String
Coach password
roles
Array
Viewer
active
Boolean
True if the coach will be active. Otherwise, False
Field Name
Type
Description
String
Coach user email
name
String
Coach name
isCoachAdmin
Boolean
Set to True to make coach
Field Name
Type
Description
success
Boolean
True if the coach information has been created successfully. Otherwise, False
message
String
Description of the result