API reference

migrateDeviceInstallation

Required permission: Authenticated

graphql
migrateDeviceInstallation(
  whiteLabelId: ID!
  previousInstallationId: String!
  currentInstallationId: String!
): Void

Arguments

Name Type Description
whiteLabelId ID!
previousInstallationId String!
currentInstallationId String!

Returns

Void

Example

graphql
mutation MigrateDeviceInstallation($whiteLabelId: ID!, $previousInstallationId: String!, $currentInstallationId: String!) {
  migrateDeviceInstallation(whiteLabelId: $whiteLabelId, previousInstallationId: $previousInstallationId, currentInstallationId: $currentInstallationId)
}
bash
curl https://api.thelocoapp.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LOCO_API_KEY" \
  -d '{"query": "mutation { migrateDeviceInstallation(...) { __typename } }"}'