Check whether a slug is available
profile.slug.check
Says whether a slug can be used by this organization: available true when it is free or is already this organization's slug (current true), or available false with reason and message: required, too_short, too_long, format (3 to 48 lowercase letters, digits and hyphens, not starting or ending with a hyphen), reserved (words MB Suite uses in its own addresses) or taken (another organization has it: slugs are unique across MB Suite). It changes nothing. Use it before profile.slug.update. Requires view access to the Profile module.
- Alcance
profile:read- Permiso
- Ver el módulo
- Tool del MCP
profile_slug_checkEn la superficie completa; en la compacta,mb_execute_operationconid: "profile.slug.check".
Costo declarado: hasta 2 lecturas y 0 escrituras por llamada (cuentan en el cupo diario).
Parámetros
slugstringqueryThe slug: 3 to 48 lowercase letters, digits and hyphens, not starting or ending with a hyphen.
Respuesta
slugstringavailablebooleancurrentbooleantrue when it is already this organization's slug.
reasonenum | nullValores: required, too_short, too_long, format, reserved, taken
messagestring | nullErrores
Ejemplo
curl "https://api.mb-suite.com/v1/profile/slug/availability?slug=SLUG" \
-H "Authorization: Bearer $MB_API_KEY"Probar con tu API key de prueba
Con una API key de prueba el pedido va siempre a tu organización de práctica: datos de ejemplo que puedes reiniciar.
curl "https://api.mb-suite.com/v1/profile/slug/availability?slug=SLUG" \
-H "Authorization: Bearer $MB_TEST_KEY"