Magnet Customer icon

Magnet Customer

Consume Magnet Customer API

Treatment Type → Create

AI-generated

Overview

This node interacts with the Magnet Customer API to create a new Treatment Type. It is useful in scenarios where users want to automate the addition of treatment types in their CRM or customer management system, such as adding new categories of treatments offered by a healthcare or wellness business.

Use Case Examples

  1. Creating a new treatment type named 'Physical Therapy' to categorize related treatments.
  2. Adding a new treatment type 'Massage Therapy' to the system for better organization and reporting.

Properties

Name Meaning
Authentication Selects the authentication method to use for the API request, either API Token or OAuth2.
Name The name of the treatment type to be created. This is a required string input.

Output

JSON

  • _id - The unique identifier of the created treatment type.
  • name - The name of the created treatment type.
  • createdAt - Timestamp when the treatment type was created.
  • updatedAt - Timestamp when the treatment type was last updated.

Dependencies

  • Magnet Customer API

Troubleshooting

  • Ensure the API credentials (API Token or OAuth2) are correctly configured and valid.
  • Verify that the 'Name' field is provided and is not empty, as it is required to create a treatment type.
  • Check network connectivity to the Magnet Customer API endpoint.
  • If the API returns an error, review the error message for details such as permission issues or invalid data formats.

Links

Discussion