Dental Office icon

Dental Office

Integração com a API do Dental Office Cloud

Overview

This node integrates with the Dental Office Cloud API to manage various resources such as users, dentists, customers, schedules, and chairs. Specifically, for the "Usuário" (User) resource with the "Remover" (Delete) operation, it allows you to delete a user by their unique ID.

Common scenarios where this node is beneficial include automating user management workflows in dental office systems, such as removing users who no longer need access or cleaning up outdated user records.

Practical example: Automatically deleting a user from the Dental Office system when they leave the organization or when their account needs to be revoked.

Properties

Name Meaning
ID do Usuário Unique numeric identifier of the user to be deleted

Output

The output JSON contains the response from the Dental Office API after attempting to delete the specified user. Typically, this will confirm successful deletion or provide error details if the operation failed.

No binary data output is produced by this operation.

Example output JSON structure:

{
  "message": "User deleted successfully"
}

or an error message if deletion fails.

Dependencies

  • Requires an API key credential for authenticating with the Dental Office Cloud API.
  • The node uses the dentalOfficeApiRequest helper function to make HTTP requests to the API endpoints.
  • Proper configuration of the API credentials in n8n is necessary for successful operation.

Troubleshooting

  • Common issues:

    • Invalid or missing user ID: Ensure the "ID do Usuário" property is provided and corresponds to an existing user.
    • Authentication errors: Verify that the API key credential is correctly configured and has sufficient permissions.
    • Network or API downtime: Check connectivity and the status of the Dental Office Cloud API service.
  • Common error messages:

    • "Operation 'delete' not supported for user": This would indicate an internal misconfiguration; ensure the operation is set correctly.
    • "User not found": The provided user ID does not exist; verify the ID.
    • "Unauthorized" or "Authentication failed": Check API credentials.
    • "Invalid JSON format": Not applicable here since delete operation does not send JSON body, but relevant for other operations.

Resolving these typically involves verifying input parameters, checking API credentials, and ensuring network connectivity.

Links and References

  • Dental Office Cloud API documentation (refer to official API docs for detailed endpoint info)
  • n8n documentation on creating custom nodes and using credentials

Discussion