MOCO icon

MOCO

Consume MOCO API

Overview

This node updates user information in the MOCO system via its API. It is useful for scenarios where user details such as name, email, password, team assignment, and status need to be modified programmatically within an automation workflow. For example, it can be used to update a user's email address or activate/deactivate a user account automatically based on external triggers.

Use Case Examples

  1. Updating a user's first name and last name after receiving updated employee information from an HR system.
  2. Changing a user's team assignment when they move to a different department.
  3. Activating or deactivating a user account based on their employment status.

Properties

Name Meaning
User ID The unique identifier of the user to update, required to specify which user record to modify.
First Name The new first name of the user being updated.
Last Name The new last name of the user being updated.
Email The new email address of the user being updated.
Password The new password for the user being updated.
Team Name or ID The team (unit) to which the user belongs, selectable from a list or specified by ID.
Additional Fields Additional optional fields such as whether the user is active or external.

Output

JSON

  • id - The unique identifier of the updated user.
  • firstname - The updated first name of the user.
  • lastname - The updated last name of the user.
  • email - The updated email address of the user.
  • unit_id - The ID of the team (unit) the user belongs to.
  • active - Indicates if the user is active or deactivated.
  • external - Indicates if the user is an external employee or contractor.

Dependencies

  • Requires MOCO API credentials for authentication.

Troubleshooting

  • Common issues include invalid or missing User ID, which will cause the API request to fail.
  • Incorrect or missing API credentials will result in authentication errors.
  • Providing invalid field values (e.g., malformed email) may cause the update to be rejected by the API.

Links

Discussion