API reference

createWhiteLabelGuestGroup

Required permission: WhiteLabelGuestWrite

graphql
createWhiteLabelGuestGroup(
  whiteLabelId: ID!
  input: WhiteLabelGuestGroupInput!
): WhiteLabelGuestGroup

Arguments

Name Type Description
whiteLabelId ID!
input WhiteLabelGuestGroupInput!

Returns

WhiteLabelGuestGroup

Example

graphql
mutation CreateWhiteLabelGuestGroup($whiteLabelId: ID!, $input: WhiteLabelGuestGroupInput!) {
  createWhiteLabelGuestGroup(whiteLabelId: $whiteLabelId, input: $input) {
    id
    cardBackgroundColor
    cardImageUrl
    invitationCode
    memberCount
    name
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { createWhiteLabelGuestGroup(...) { __typename } }"}'