Request:
mutation {
makeDelegate (
input: {
firstName: "Some"
lastName: "Delegate"
email: "some.delegate@example.com"
role: "account_admin"
}
) {
usersAccount {
userId
role
status
}
}
}
Response:
{
"data": {
"makeDelegate": {
"usersAccount": {
"userId": "f24dbbea-742c-4513-96e9-6b2f4edadcc3",
"role": "account_admin",
"status": "active"
}
}
}
}
In this example, the migration adds a delegate to the account role under whose authority you are operating. Possible values for the “role” field in the mutation are:
- account_owner
- account_admin
- account_viewer