Mutations
Mutations require authentication in the form of the user's valid GCaccount access token. The access token must be passed in the request header in the form Authorization: Bearer {access token}.
Profile Mutations
Available arguments to send in a mutation:
gcIda user's identifier (string)-
dataan object with values to modify (dict)nameuser's name (string)emailuser's email (string)titleEnuser's English position title (string)titleFruser's French position title (string)mobilePhonemobile phone number (string)officePhoneoffice phone number (string)addressuser's work address (address object)streetAddress(string)city(string)province(string)postalCode(string)country(string)teamteam object of associated team (team object)ida team's unique identifier (string)
Example mutation using all available arguments:
mutation{
modifyProfile(
gcId:2,
profileInfo:{
name:"string",
email:"string",
titleEn:"string",
titleFr:"string",
mobilePhone:"string",
officePhone:"string",
address:{
streetAddress:"string",
city:"string",
province:"string",
postalCode:"string",
country:"string",
},
team:{
id:1243
}
}
)
}Team Mutations
Create a Team
Available arguments to send in a mutation:
nameEnEnglish name of team (string)nameFrFrench name of team (string)descriptionEnEnglish description of team (string)descrtiptionFrFrench description of team (string)organizationorganization object unique identifier (organization object)ownerunique user who owns the team. Can be identified by email or by gcID (profile object)
Example mutation to create an OrgTier:
mutation{
createOrgTier(
nameEn:"string",
nameFr:"string",
descriptionEn:"English Description",
descriptionFR:"French Description",
organization:{
id:1243
},
owner:{
gcID:"5433245",
email:"joe.smith@canada.ca"
}
)
}Modify a Team
Available arguments to send in a mutation:
idunique identifier of the team to modify (int)-
dataobject of information to modify (dict)nameEnEnglish name of team (string)nameFrFrench name of team (string)descriptionEnEnglish description of team (string)descrtiptionFrFrench description of team (string)organizationorganization object unique identifier (organization object)ownerunique user who owns the team. Can be identified by email or by gcID (profile object)
Example mutation to modify an OrgTier:
mutation{
modifyOrgTier(
id:2,
nameEn:"string",
nameFr:"string",
descriptionEn:"English Description",
descriptionFR:"French Description",
organization:{
id:1243
},
owner:{
gcID:"5433245",
email:"joe.smith@canada.ca"
}
)
}Delete a Team
Available arguments to send in a mutation:
idunique identifier of the team (int)
Example mutation to delete an OrgTier:
mutation{
deleteOrgTier(
id:6
)
}Approvals
Available arguments to send in a mutation:
idunique identifier of the approval to modify (int)-
dataobject that contains changes to applystatus*enum of eitherPending,Approved, orDenied(enum)deniedComment*reaseon for setting status toDenied(string)
Example mutation to modify Approval:
mutation{
modifyApproval(
id:23,
data:{
status: Denied
deniedComment: "blah"
}
)
}