API reference

createWhiteLabelUser

Required permission: WhiteLabelUserWrite

graphql
createWhiteLabelUser(
  whiteLabelId: ID!
  input: WhiteLabelUserInput!
): WhiteLabelUser

Arguments

Name Type Description
whiteLabelId ID!
input WhiteLabelUserInput!

Returns

WhiteLabelUser

Example

graphql
mutation CreateWhiteLabelUser($whiteLabelId: ID!, $input: WhiteLabelUserInput!) {
  createWhiteLabelUser(whiteLabelId: $whiteLabelId, input: $input) {
    id
    email
    hasDiscountAccess
    hasGuestRegistryAccess
    hasMarketingPushNotificationAccess
    hasSettingsAccess
  }
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { createWhiteLabelUser(...) { __typename } }"}'