Mutation
mutation SetIbcMemberRole($input: SetIbcMemberRoleInput!) {
setIbcMemberRole(input: $input) {
id
role
termEnd
termStart
user {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
createdAt
id
name
users {
__typename
}
}
}
}
}Variables
{
"input": {
"role": "AD_HOC_MEMBER",
"userId": "string"
}
}Response
{
"data": {
"setIbcMemberRole": {
"id": "string",
"role": "AD_HOC_MEMBER",
"termEnd": "value",
"termStart": "value",
"user": {
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"__typename": "User"
}
]
}
]
}
}
}
}Mutations
setIbcMemberRole
Gives a user a role on the IBC, replacing any role they already hold, and returns the membership.
MUTATION
setIbcMemberRole(input: SetIbcMemberRoleInput!): IbcMemberRole!Arguments
input
required
The user and the role to give them.
Returns
id
String!
Id of the membership.
role
Role the member holds on the committee.
termEnd
DateTime
End of the member's term.
termStart
DateTime
Start of the member's term.
user
User!
The user who holds the role.
Mutation
mutation SetIbcMemberRole($input: SetIbcMemberRoleInput!) {
setIbcMemberRole(input: $input) {
id
role
termEnd
termStart
user {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
createdAt
id
name
users {
__typename
}
}
}
}
}Variables
{
"input": {
"role": "AD_HOC_MEMBER",
"userId": "string"
}
}Response
{
"data": {
"setIbcMemberRole": {
"id": "string",
"role": "AD_HOC_MEMBER",
"termEnd": "value",
"termStart": "value",
"user": {
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"__typename": "User"
}
]
}
]
}
}
}
}