API reference

updateWhiteLabelUser

Required permission: WhiteLabelUserWrite

graphql
updateWhiteLabelUser(
  whiteLabelId: ID!
  whiteLabelUserId: ID!
  patch: WhiteLabelUserPatch!
): WhiteLabelUser

Arguments

Name Type Description
whiteLabelId ID!
whiteLabelUserId ID!
patch WhiteLabelUserPatch!

Returns

WhiteLabelUser

Example

graphql
mutation UpdateWhiteLabelUser($whiteLabelId: ID!, $whiteLabelUserId: ID!, $patch: WhiteLabelUserPatch!) {
  updateWhiteLabelUser(whiteLabelId: $whiteLabelId, whiteLabelUserId: $whiteLabelUserId, patch: $patch) {
    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 { updateWhiteLabelUser(...) { __typename } }"}'