Flex Platform icon

Flex Platform

Interactie met Flex Platform API

Assignments → Update (Patch)

AI-generated

Overview

This node interacts with the Flex Platform API to perform various operations on different resources such as Assignments and Invoices. Specifically, for the 'Assignments' resource and the 'Update (Patch)' operation, it allows users to update existing assignment items by specifying the model type (e.g., Timesheet, Timesheet Hours, Placements), the ID of the item to update, and the fields to be updated. This is useful for scenarios where you need to modify details of an assignment, such as changing the amount, status, or any other custom field. For example, you could update the status of a timesheet or adjust the amount on a placement record.

Use Case Examples

  1. Updating the status of a timesheet assignment to 'approved'.
  2. Modifying the amount field on a placement assignment.
  3. Changing a custom field value on a timesheet hours assignment.

Properties

Name Meaning
Model Select the type of assignment object to update (Timesheet, Timesheet Hours, Placements).
ID The unique identifier (UUID or number) of the assignment item to update.
Update Fields The fields and their new values to update on the assignment item, including Amount, Status, or any other custom field name.

Output

JSON

  • json - The JSON response from the Flex Platform API representing the updated assignment item.

Dependencies

  • Flex Platform API with authentication via an API key credential

Troubleshooting

  • Ensure the provided ID is correct and exists in the Flex Platform to avoid 'item not found' errors.
  • Verify that the API credentials are valid and have sufficient permissions to update assignments.
  • Check that the fields specified in 'Update Fields' are valid for the selected model; invalid fields may cause API errors.
  • If using custom fields, ensure the field names match exactly those expected by the API.

Discussion