Mutations
addUsersToHub
Add Users To a Hub.
Template for Query:
mutation AddUsersToHub($input: addUsersToHubInput){
addUsersToHub(input: $input) {
#AddUsersToHub Fields
}
}
Template for Query Variables:
{
"input" : "<SOME-ADD-USERS-TO-HUB-INPUT-TYPE>"
}
Arguments
input |
Possible Returns
Value Type | Description |
---|---|
AddUsersToHubPayload | Payload needed to add users to hub. |
Examples
Example 1
Add users to hub.
Query:
mutation addUsersToHubTest($input: AddUsersToHubInput!) {
addUsersToHub(input: $input){
hub{
name
projects{
results{
name
}
}
}
}
}
Show More
Query Variables:
{ "input": {
"hubId": "a.YnVzaW5lc3M6YXV0b2Rlc2syMDA2",
"userEmails": ["TestUser_IdPR_60600C092E_Test@mailinator.com"]
}
}
Response:
{
"data": {
"addUsersToHub": {
"hub": {
"name": "L2-Forge-Data-Team",
"projects": {
"results": [
{
"name": "Test data for demos"
},
{
"name": "TestProject"
},
{
"name": "Arafat-FTFA-222"
},
{
"name": "Arafat-2LO_U1"
},
{
"name": "Default Project - TestViaPostman"
},
{
"name": "Default Project - TestViaPostman"
},
{
"name": "Default Project"
},
{
"name": "Assets"
},
{
"name": "Configurations"
}
]
}
}
}
}
}
Show More