API reference
createWhiteLabelUser
Required permission: WhiteLabelUserWrite
createWhiteLabelUser(
whiteLabelId: ID!
input: WhiteLabelUserInput!
): WhiteLabelUserArguments
| Name | Type | Description |
|---|---|---|
whiteLabelId |
ID! |
|
input |
WhiteLabelUserInput! |
Returns
Example
mutation CreateWhiteLabelUser($whiteLabelId: ID!, $input: WhiteLabelUserInput!) {
createWhiteLabelUser(whiteLabelId: $whiteLabelId, input: $input) {
id
email
hasDiscountAccess
hasGuestRegistryAccess
hasMarketingPushNotificationAccess
hasSettingsAccess
}
}curl https://api.thelocoapp.com/graphql \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LOCO_API_KEY" \
-d '{"query": "mutation { createWhiteLabelUser(...) { __typename } }"}'